Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",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.001307/0.001308, 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.001336/0.001336, 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.46/1.46, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2322/0.2322, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3455, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003462/0.349, allocations: 2.465 MB / 0.5208 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.3508, allocations: 1.036 MB / 0.5218 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.3509, allocations: 8.5 kB / 0.5218 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.3522, allocations: 0.4952 MB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003453/0.3525, allocations: 102.6 kB / 0.5224 GB, free: 488 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.3536, allocations: 0.6358 MB / 0.523 GB, free: 80 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003626/0.354, allocations: 223.7 kB / 0.5233 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005025/0.3545, allocations: 256.1 kB / 0.5235 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.3547, allocations: 99.17 kB / 0.5236 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.3549, allocations: 128.7 kB / 0.5237 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.3549, allocations: 22 kB / 0.5237 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003715/0.3553, allocations: 143.4 kB / 0.5239 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.3554, allocations: 53.56 kB / 0.5239 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.3555, allocations: 111.9 kB / 0.524 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006059/0.3561, allocations: 403.7 kB / 0.5244 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3562, allocations: 0 / 0.5244 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3562, allocations: 0.7031 kB / 0.5244 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3562, allocations: 0 / 0.5244 GB, free: 15.4 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.00146/0.3576, allocations: 0.6245 MB / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3577, allocations: 10.5 kB / 0.525 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.376e-05/0.3578, allocations: 56.09 kB / 0.5251 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003388/0.3581, allocations: 57.34 kB / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.3584, allocations: 191.1 kB / 0.5253 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.3584, allocations: 22.5 kB / 0.5254 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.3585, allocations: 24.88 kB / 0.5254 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006449/0.3591, allocations: 291.9 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.3591, allocations: 0 / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.3592, allocations: 10.75 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.3592, allocations: 6.875 kB / 0.5257 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/0.3598, allocations: 236.5 kB / 0.5259 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.3616, allocations: 0.9961 MB / 0.5269 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006311/0.3623, allocations: 380.7 kB / 0.5272 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003921/0.3627, allocations: 139.5 kB / 0.5274 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000137/0.3628, allocations: 83.05 kB / 0.5274 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.3629, allocations: 40.89 kB / 0.5275 GB, free: 13.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.3629, allocations: 0 / 0.5275 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001284/0.3642, allocations: 0.4992 MB / 0.528 GB, free: 12.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.3643, allocations: 83.8 kB / 0.5281 GB, free: 12.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.3644, allocations: 136.6 kB / 0.5282 GB, free: 12.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.3644, allocations: 31.08 kB / 0.5282 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3646, allocations: 145.9 kB / 0.5283 GB, free: 12.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.088e-05/0.3646, allocations: 71.8 kB / 0.5284 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.339e-05/0.3647, allocations: 34.09 kB / 0.5285 GB, free: 12.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3649, allocations: 325.5 kB / 0.5288 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.3652, allocations: 73.06 kB / 0.5288 GB, free: 11.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.3654, allocations: 121.9 kB / 0.5289 GB, free: 11.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.3659, allocations: 210.8 kB / 0.5291 GB, free: 11.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.3659, allocations: 0 / 0.5291 GB, free: 11.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006825/0.3666, allocations: 279.7 kB / 0.5294 GB, free: 11.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3666, allocations: 10.72 kB / 0.5294 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3667, allocations: 1.281 kB / 0.5294 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/0.3669, allocations: 48.78 kB / 0.5295 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.3671, allocations: 46.72 kB / 0.5295 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.3698, allocations: 2.836 MB / 0.5323 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.37, allocations: 25.97 kB / 0.5323 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.3701, allocations: 14.25 kB / 0.5323 GB, free: 8.52 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.3703, allocations: 141.5 kB / 0.5325 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.3704, allocations: 14.22 kB / 0.5325 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007436/0.3711, allocations: 271.9 kB / 0.5327 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3711, allocations: 3.25 kB / 0.5327 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3711, allocations: 0.9688 kB / 0.5327 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3712, allocations: 1.094 kB / 0.5327 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.3724, allocations: 0.6529 MB / 0.5334 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3724, allocations: 1.125 kB / 0.5334 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.3726, allocations: 37.97 kB / 0.5334 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.3728, allocations: 46.23 kB / 0.5335 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3728, allocations: 3.25 kB / 0.5335 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.3752, allocations: 2.842 MB / 0.5362 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3752, allocations: 1.125 kB / 0.5362 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009838/0.3762, allocations: 0.5151 MB / 0.5367 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.414e-05/0.3763, allocations: 100.9 kB / 0.5368 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.3764, allocations: 2.625 kB / 0.5368 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.3766, allocations: 20.48 kB / 0.5369 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.3766, allocations: 20.56 kB / 0.5369 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3766, allocations: 4.406 kB / 0.5369 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.3768, allocations: 110.4 kB / 0.537 GB, free: 4.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3768, allocations: 3.938 kB / 0.537 GB, free: 4.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005207/0.3773, allocations: 71.05 kB / 0.5371 GB, free: 4.012 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.port_p.reference.gamma) * 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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001472/0.3788, allocations: 1.083 MB / 0.5381 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000919/0.3797, allocations: 415.7 kB / 0.5385 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3797, allocations: 1.438 kB / 0.5385 GB, free: 2.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.3802, allocations: 330.3 kB / 0.5388 GB, free: 2.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004963/0.3808, allocations: 17.38 kB / 0.5388 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.3846, allocations: 2.368 MB / 0.5412 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.385, allocations: 0.7336 MB / 0.5419 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.3852, allocations: 20.19 kB / 0.5419 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3853, allocations: 62 kB / 0.542 GB, free: 15.68 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3853, allocations: 1.094 kB / 0.542 GB, free: 15.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04062/0.4259, allocations: 4.336 MB / 0.5462 GB, free: 13.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.789/10.22, allocations: 20.81 kB / 0.5462 GB, free: 13.5 MB / 414.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches