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.001235/0.001235, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001334/0.001334, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.426/1.426, allocations: 222.9 MB / 242.4 MB, free: 15.13 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.22/0.22, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 59.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3662, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004838/0.3711, allocations: 2.655 MB / 0.521 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.3728, allocations: 0.7524 MB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001892/0.373, allocations: 5.469 kB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.3733, allocations: 70.48 kB / 0.5218 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.3736, allocations: 97.31 kB / 0.5219 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.374, allocations: 112.4 kB / 0.522 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.3745, allocations: 417.5 kB / 0.5224 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002638/0.3748, allocations: 159.6 kB / 0.5226 GB, free: 420 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.375, allocations: 148.5 kB / 0.5227 GB, free: 348 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.3752, allocations: 169.9 kB / 0.5229 GB, free: 256 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.581e-05/0.3753, allocations: 33.28 kB / 0.5229 GB, free: 256 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.858e-05/0.3754, allocations: 32.59 kB / 0.5229 GB, free: 256 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.37e-05/0.3755, allocations: 87.94 kB / 0.523 GB, free: 192 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.3757, allocations: 182.5 kB / 0.5232 GB, free: 76 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005402/0.3762, allocations: 416.9 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3762, allocations: 0 / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3762, allocations: 0.8125 kB / 0.5236 GB, free: 15.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3762, 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.001177/0.3774, allocations: 0.663 MB / 0.5242 GB, free: 15.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3775, allocations: 11.28 kB / 0.5242 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.2e-05/0.3776, allocations: 72.03 kB / 0.5243 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.516e-05/0.3777, allocations: 40.44 kB / 0.5244 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.3781, allocations: 272.9 kB / 0.5246 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.3781, allocations: 27.25 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.3782, allocations: 34.28 kB / 0.5247 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007365/0.3789, allocations: 366.3 kB / 0.525 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3789, allocations: 0 / 0.525 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.379, allocations: 15.72 kB / 0.525 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.379, allocations: 8.578 kB / 0.525 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.3797, allocations: 264.5 kB / 0.5253 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.3819, allocations: 1.341 MB / 0.5266 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.3825, allocations: 197 kB / 0.5268 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.3827, allocations: 85.33 kB / 0.5269 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.3828, allocations: 1.953 kB / 0.5269 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.3828, allocations: 42.75 kB / 0.5269 GB, free: 13.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3828, allocations: 0 / 0.5269 GB, free: 13.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008587/0.3837, allocations: 243.5 kB / 0.5271 GB, free: 13.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.3838, allocations: 135.4 kB / 0.5273 GB, free: 13.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.3842, allocations: 329.3 kB / 0.5276 GB, free: 13.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-05/0.3843, allocations: 25.7 kB / 0.5276 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.3845, allocations: 245.5 kB / 0.5279 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.616e-05/0.3846, allocations: 50.17 kB / 0.5279 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.3847, allocations: 58.52 kB / 0.528 GB, free: 12.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3849, allocations: 341.6 kB / 0.5283 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.3851, allocations: 83.12 kB / 0.5284 GB, free: 12.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.3854, allocations: 168.3 kB / 0.5285 GB, free: 12.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005487/0.386, allocations: 263.6 kB / 0.5288 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.386, allocations: 1.156 kB / 0.5288 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007141/0.3867, allocations: 308.8 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.3867, allocations: 6.344 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3868, allocations: 3.812 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3868, allocations: 7.625 kB / 0.5291 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/0.3872, allocations: 85.06 kB / 0.5292 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3872, allocations: 16.98 kB / 0.5292 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.3875, allocations: 47.42 kB / 0.5292 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.3875, allocations: 10.12 kB / 0.5292 GB, free: 11.71 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.0001472/0.3877, allocations: 149.3 kB / 0.5294 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.3878, allocations: 25.31 kB / 0.5294 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.96e-05/0.3879, allocations: 35.02 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3879, allocations: 2.531 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3879, allocations: 5.125 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3879, allocations: 1.25 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007864/0.3887, allocations: 0.5932 MB / 0.53 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3887, allocations: 1.062 kB / 0.53 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.389, allocations: 58.97 kB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.389, allocations: 2.531 kB / 0.5301 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.389, allocations: 15.03 kB / 0.5301 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.3891, allocations: 2.094 kB / 0.5301 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3891, allocations: 2.188 kB / 0.5301 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005885/0.3897, allocations: 400.2 kB / 0.5305 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.842e-05/0.3898, allocations: 105.5 kB / 0.5306 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.3898, allocations: 10.84 kB / 0.5306 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.39, allocations: 21.34 kB / 0.5306 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.592e-05/0.3901, allocations: 10.42 kB / 0.5306 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.3901, allocations: 8.531 kB / 0.5306 GB, free: 10.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002797/0.3904, allocations: 226.3 kB / 0.5308 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3904, allocations: 0 / 0.5308 GB, free: 10.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004613/0.3909, allocations: 71.22 kB / 0.5309 GB, free: 10.29 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.001054/0.392, allocations: 0.9356 MB / 0.5318 GB, free: 9.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006023/0.3926, allocations: 202.3 kB / 0.532 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3926, allocations: 1.062 kB / 0.532 GB, free: 9.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.3928, allocations: 77.92 kB / 0.5321 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/0.3933, allocations: 21.56 kB / 0.5321 GB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.3979, allocations: 2.951 MB / 0.535 GB, free: 6.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.3983, allocations: 0.7775 MB / 0.5358 GB, free: 6.203 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.3985, allocations: 20.92 kB / 0.5358 GB, free: 6.195 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.3986, allocations: 107.5 kB / 0.5359 GB, free: 6.105 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3986, allocations: 0 / 0.5359 GB, free: 6.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.4256, allocations: 4.931 MB / 0.5407 GB, free: 3.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.081/8.507, allocations: 5.188 kB / 0.5407 GB, free: 3.617 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