Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.001081, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2174/0.2174, allocations: 46.09 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 79.86 kB / 480.8 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3453, allocations: 62.44 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003722/0.3491, allocations: 1.725 MB / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001681/0.3493, allocations: 82.31 kB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.824e-05/0.3493, allocations: 7.5 kB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.212e-05/0.3494, allocations: 11.81 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.552e-05/0.3495, allocations: 23.34 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001112/0.3496, allocations: 31.45 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.3497, allocations: 104 kB / 0.5324 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.3499, allocations: 50.34 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.554e-05/0.35, allocations: 49.19 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.098e-05/0.3501, allocations: 51.47 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.3501, allocations: 11.53 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.069e-05/0.3502, allocations: 11.38 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.352e-05/0.3502, allocations: 26.53 kB / 0.5326 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.901e-05/0.3503, allocations: 52.88 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.3504, allocations: 113.6 kB / 0.5328 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3505, allocations: 0 / 0.5328 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3505, allocations: 1.094 kB / 0.5328 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3505, allocations: 0 / 0.5328 GB, free: 11.66 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006806/0.3512, allocations: 424.9 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.3512, allocations: 9.406 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.13e-05/0.3513, allocations: 46.05 kB / 0.5332 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.3513, allocations: 10.3 kB / 0.5332 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.3515, allocations: 179.8 kB / 0.5334 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3515, allocations: 7.844 kB / 0.5334 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.3515, allocations: 15.48 kB / 0.5334 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.3519, allocations: 124.2 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3519, allocations: 3.938 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3519, allocations: 3.984 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3519, allocations: 3.812 kB / 0.5336 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/0.3523, allocations: 108.9 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008053/0.3531, allocations: 473.4 kB / 0.5341 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002377/0.3534, allocations: 79.72 kB / 0.5342 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.3536, allocations: 69.92 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.3536, allocations: 1.375 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.3537, allocations: 35.88 kB / 0.5343 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.3537, allocations: 0 / 0.5343 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007716/0.3544, allocations: 268.7 kB / 0.5346 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.3545, allocations: 52.78 kB / 0.5346 GB, free: 9.973 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.041e-05/0.3546, allocations: 120.9 kB / 0.5347 GB, free: 9.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3546, allocations: 29.7 kB / 0.5348 GB, free: 9.824 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.3547, allocations: 105.7 kB / 0.5349 GB, free: 9.719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.3547, allocations: 30.52 kB / 0.5349 GB, free: 9.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/0.3548, allocations: 21.84 kB / 0.5349 GB, free: 9.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3549, allocations: 320.2 kB / 0.5352 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.355, allocations: 32.59 kB / 0.5352 GB, free: 9.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.3552, allocations: 57.91 kB / 0.5353 GB, free: 9.293 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.3555, allocations: 105 kB / 0.5354 GB, free: 9.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3555, allocations: 1.375 kB / 0.5354 GB, free: 9.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003848/0.3559, allocations: 149.7 kB / 0.5355 GB, free: 9.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3559, allocations: 8.312 kB / 0.5355 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3559, allocations: 1.375 kB / 0.5355 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.3561, allocations: 27.78 kB / 0.5356 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3562, allocations: 20.36 kB / 0.5356 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.3573, allocations: 1.404 MB / 0.537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.3574, allocations: 20.03 kB / 0.537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.3574, allocations: 6.344 kB / 0.537 GB, free: 7.625 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.3575, allocations: 127.6 kB / 0.5371 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.009e-05/0.3576, allocations: 11.67 kB / 0.5371 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.3576, allocations: 9.656 kB / 0.5371 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3576, allocations: 1.438 kB / 0.5371 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3576, allocations: 0 / 0.5371 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3576, allocations: 0 / 0.5371 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006309/0.3582, allocations: 423.9 kB / 0.5375 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3583, allocations: 0 / 0.5375 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.345e-05/0.3584, allocations: 19.38 kB / 0.5376 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.044e-05/0.3584, allocations: 26.69 kB / 0.5376 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.3584, allocations: 1.062 kB / 0.5376 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000886/0.3593, allocations: 1.412 MB / 0.539 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3594, allocations: 224 / 0.539 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.3598, allocations: 238.5 kB / 0.5392 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.3598, allocations: 83.97 kB / 0.5393 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.3598, allocations: 5.156 kB / 0.5393 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.36, allocations: 15.42 kB / 0.5393 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.36, allocations: 11.92 kB / 0.5393 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.36, allocations: 5.125 kB / 0.5393 GB, free: 5.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.022e-05/0.3601, allocations: 97.58 kB / 0.5394 GB, free: 5.176 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3601, allocations: 0 / 0.5394 GB, free: 5.176 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.3604, allocations: 27.14 kB / 0.5394 GB, free: 5.168 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0007002/0.3611, allocations: 0.7631 MB / 0.5402 GB, free: 4.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004932/0.3616, allocations: 206.2 kB / 0.5404 GB, free: 4.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3616, allocations: 0 / 0.5404 GB, free: 4.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.3619, allocations: 170.8 kB / 0.5405 GB, free: 4.133 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.3622, allocations: 18.27 kB / 0.5405 GB, free: 4.121 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.3642, allocations: 1.607 MB / 0.5421 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3645, allocations: 0.7021 MB / 0.5428 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.403e-05/0.3645, allocations: 5 kB / 0.5428 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.266e-05/0.3646, allocations: 25.89 kB / 0.5428 GB, free: 1.918 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3646, allocations: 3.938 kB / 0.5428 GB, free: 1.914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.3885, allocations: 2.371 MB / 0.5451 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.417/9.806, allocations: 8.844 kB / 0.5452 GB, free: 0.6562 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches