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.00108/0.001079, allocations: 109.5 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.001083/0.001084, allocations: 188.8 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.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2095/0.2095, allocations: 44.19 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.88 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3347, allocations: 60.82 MB / 0.5184 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003997/0.3387, allocations: 2.66 MB / 0.521 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.34, allocations: 0.7481 MB / 0.5217 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.3402, allocations: 5.188 kB / 0.5217 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.3405, allocations: 71.14 kB / 0.5218 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003208/0.3409, allocations: 105.8 kB / 0.5219 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003355/0.3412, allocations: 111.2 kB / 0.522 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.3417, allocations: 417.9 kB / 0.5224 GB, free: 360 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.342, allocations: 151.2 kB / 0.5226 GB, free: 276 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.3422, allocations: 152.2 kB / 0.5227 GB, free: 200 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.3424, allocations: 170.2 kB / 0.5229 GB, free: 108 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.565e-05/0.3425, allocations: 33.09 kB / 0.5229 GB, free: 108 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.584e-05/0.3425, allocations: 32.66 kB / 0.5229 GB, free: 108 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.3426, allocations: 79.88 kB / 0.523 GB, free: 52 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.3428, allocations: 186.3 kB / 0.5232 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.3433, allocations: 417.1 kB / 0.5236 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3433, allocations: 0 / 0.5236 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3433, allocations: 1.531 kB / 0.5236 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.3433, allocations: 0 / 0.5236 GB, free: 15.77 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.00114/0.3445, allocations: 0.6623 MB / 0.5242 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.3445, allocations: 10.77 kB / 0.5242 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.776e-05/0.3446, allocations: 73.23 kB / 0.5243 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.3447, allocations: 40.91 kB / 0.5244 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.3451, allocations: 276.2 kB / 0.5246 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.3452, allocations: 26.25 kB / 0.5246 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.339e-05/0.3452, allocations: 35.09 kB / 0.5247 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007481/0.346, allocations: 361.4 kB / 0.525 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.346, allocations: 0 / 0.525 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.3461, allocations: 18.83 kB / 0.525 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.3461, allocations: 8.344 kB / 0.525 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/0.3467, allocations: 261.7 kB / 0.5253 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.3489, allocations: 1.341 MB / 0.5266 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.3494, allocations: 196.9 kB / 0.5268 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.3496, allocations: 81.2 kB / 0.5269 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.3497, allocations: 10.89 kB / 0.5269 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.3497, allocations: 34.56 kB / 0.5269 GB, free: 13.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.3497, allocations: 0 / 0.5269 GB, free: 13.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007856/0.3505, allocations: 249.1 kB / 0.5271 GB, free: 13.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.3506, allocations: 130.7 kB / 0.5273 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003718/0.3509, allocations: 325.5 kB / 0.5276 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.351, allocations: 29.7 kB / 0.5276 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.3511, allocations: 241.5 kB / 0.5278 GB, free: 12.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.3512, allocations: 54.16 kB / 0.5279 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.3513, allocations: 58.55 kB / 0.5279 GB, free: 12.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3515, allocations: 345.6 kB / 0.5283 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.3517, allocations: 79.12 kB / 0.5284 GB, free: 12.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.352, allocations: 176.3 kB / 0.5285 GB, free: 12.04 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000467/0.3524, allocations: 256.4 kB / 0.5288 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3525, allocations: 4 kB / 0.5288 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006694/0.3531, allocations: 304.9 kB / 0.5291 GB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3532, allocations: 6.375 kB / 0.5291 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3532, allocations: 7.109 kB / 0.5291 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3532, allocations: 13.41 kB / 0.5291 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.3536, allocations: 83.81 kB / 0.5292 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.3536, allocations: 9.547 kB / 0.5292 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.3539, allocations: 46.95 kB / 0.5292 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3539, allocations: 13.56 kB / 0.5292 GB, free: 11.61 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.0001503/0.3541, allocations: 148.7 kB / 0.5294 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3542, allocations: 30.28 kB / 0.5294 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.028e-05/0.3543, allocations: 31.31 kB / 0.5294 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3543, allocations: 6.484 kB / 0.5294 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.3543, allocations: 1.344 kB / 0.5294 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3543, allocations: 1.562 kB / 0.5294 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008628/0.3552, allocations: 0.5963 MB / 0.53 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3552, allocations: 1.312 kB / 0.53 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/0.3555, allocations: 54.97 kB / 0.5301 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.3555, allocations: 6.203 kB / 0.5301 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3555, allocations: 10.25 kB / 0.5301 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.3555, allocations: 7.438 kB / 0.5301 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3556, allocations: 1.156 kB / 0.5301 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005813/0.3561, allocations: 397.3 kB / 0.5305 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.722e-05/0.3562, allocations: 105.7 kB / 0.5306 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.3563, allocations: 15.91 kB / 0.5306 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.3565, allocations: 15.5 kB / 0.5306 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.3566, allocations: 14.77 kB / 0.5306 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3566, allocations: 9 kB / 0.5306 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.3569, allocations: 226.3 kB / 0.5309 GB, free: 10.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3569, allocations: 0 / 0.5309 GB, free: 10.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004179/0.3573, allocations: 75.47 kB / 0.5309 GB, free: 10.17 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.0008771/0.3582, allocations: 0.9201 MB / 0.5318 GB, free: 9.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.3587, allocations: 197.5 kB / 0.532 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3587, allocations: 1.031 kB / 0.532 GB, free: 9.227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.359, allocations: 85.94 kB / 0.5321 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.3594, allocations: 30.06 kB / 0.5321 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.3634, allocations: 2.945 MB / 0.535 GB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.3639, allocations: 0.782 MB / 0.5358 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.364, allocations: 18.08 kB / 0.5358 GB, free: 6.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.3642, allocations: 102.6 kB / 0.5359 GB, free: 6 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3642, allocations: 0 / 0.5359 GB, free: 6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.3896, allocations: 4.94 MB / 0.5407 GB, free: 3.504 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.44, allocations: 6.312 kB / 0.5407 GB, free: 3.5 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