Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 112.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2211/0.2211, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 71.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3103, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003352/0.3137, allocations: 2.655 MB / 0.521 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3148, allocations: 0.7464 MB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.3149, allocations: 5.906 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.3151, allocations: 70.08 kB / 0.5218 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002064/0.3154, allocations: 97.3 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.3156, allocations: 120.5 kB / 0.522 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.316, allocations: 413.5 kB / 0.5224 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.3162, allocations: 155.4 kB / 0.5226 GB, free: 424 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.3164, allocations: 148.4 kB / 0.5227 GB, free: 352 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.3166, allocations: 169.7 kB / 0.5229 GB, free: 260 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.699e-05/0.3167, allocations: 33.22 kB / 0.5229 GB, free: 260 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.3167, allocations: 32.94 kB / 0.5229 GB, free: 260 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.3168, allocations: 80.14 kB / 0.523 GB, free: 204 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.317, allocations: 185.3 kB / 0.5232 GB, free: 84 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004721/0.3174, allocations: 425.4 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3175, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3175, allocations: 4 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.3175, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001152/0.3186, allocations: 0.6678 MB / 0.5242 GB, free: 15.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3187, allocations: 9.656 kB / 0.5243 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.432e-05/0.3188, allocations: 78.41 kB / 0.5243 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.3188, allocations: 39.3 kB / 0.5244 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.3192, allocations: 281.4 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.3192, allocations: 22.88 kB / 0.5247 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.3193, allocations: 39.03 kB / 0.5247 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.32, allocations: 373.4 kB / 0.525 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.32, allocations: 0 / 0.525 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.3201, allocations: 15.66 kB / 0.5251 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.3201, allocations: 6.469 kB / 0.5251 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006499/0.3207, allocations: 262.9 kB / 0.5253 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.3229, allocations: 1.34 MB / 0.5266 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005032/0.3234, allocations: 194.8 kB / 0.5268 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/0.3237, allocations: 84 kB / 0.5269 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.3237, allocations: 3.531 kB / 0.5269 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.3237, allocations: 40.67 kB / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.522e-06/0.3238, allocations: 1.281 kB / 0.5269 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008164/0.3246, allocations: 252.2 kB / 0.5272 GB, free: 13.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.934e-05/0.3247, allocations: 133.7 kB / 0.5273 GB, free: 13.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.325, allocations: 326.1 kB / 0.5276 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3251, allocations: 25.7 kB / 0.5276 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.3253, allocations: 250.2 kB / 0.5279 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.3253, allocations: 54.42 kB / 0.5279 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.3254, allocations: 54.61 kB / 0.528 GB, free: 12.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3256, allocations: 345.6 kB / 0.5283 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.3258, allocations: 75.14 kB / 0.5284 GB, free: 12.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3261, allocations: 168.4 kB / 0.5285 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.3267, allocations: 255.2 kB / 0.5288 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3267, allocations: 1.406 kB / 0.5288 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006737/0.3274, allocations: 318.6 kB / 0.5291 GB, free: 11.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3274, allocations: 5.75 kB / 0.5291 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3274, allocations: 2.906 kB / 0.5291 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3274, allocations: 8.094 kB / 0.5291 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.3279, allocations: 88.39 kB / 0.5292 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.3279, allocations: 5.031 kB / 0.5292 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.3282, allocations: 56.16 kB / 0.5293 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.3282, allocations: 18.03 kB / 0.5293 GB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.3283, allocations: 148 kB / 0.5294 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.3284, allocations: 34.17 kB / 0.5294 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.691e-05/0.3285, allocations: 34.66 kB / 0.5295 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3285, allocations: 2.875 kB / 0.5295 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3285, allocations: 1.5 kB / 0.5295 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3286, allocations: 1.156 kB / 0.5295 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000803/0.3294, allocations: 0.5891 MB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3294, allocations: 1.469 kB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.3297, allocations: 58.75 kB / 0.5301 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3297, allocations: 2.469 kB / 0.5301 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.3297, allocations: 10.41 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3297, allocations: 6.25 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3297, allocations: 2.125 kB / 0.5301 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.3303, allocations: 399.9 kB / 0.5305 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.265e-05/0.3304, allocations: 105.6 kB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.3305, allocations: 11.05 kB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.3307, allocations: 16.48 kB / 0.5306 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.3308, allocations: 19.36 kB / 0.5307 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.3308, allocations: 8.125 kB / 0.5307 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.331, allocations: 226.2 kB / 0.5309 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.331, allocations: 1.531 kB / 0.5309 GB, free: 10.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003849/0.3314, allocations: 70.16 kB / 0.531 GB, free: 10.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009175/0.3324, allocations: 0.9289 MB / 0.5319 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005431/0.3329, allocations: 191.4 kB / 0.532 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3329, allocations: 0 / 0.532 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.3332, allocations: 86.48 kB / 0.5321 GB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.3336, allocations: 22.16 kB / 0.5321 GB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/0.3376, allocations: 2.968 MB / 0.535 GB, free: 6.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3381, allocations: 0.7817 MB / 0.5358 GB, free: 6.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.3382, allocations: 22.27 kB / 0.5358 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3384, allocations: 106.7 kB / 0.5359 GB, free: 6.074 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3384, allocations: 0 / 0.5359 GB, free: 6.074 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02758/0.366, allocations: 4.872 MB / 0.5407 GB, free: 3.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.314/8.68, allocations: 6.375 kB / 0.5407 GB, free: 3.609 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches