Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.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.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_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.001426/0.001426, allocations: 114.4 kB / 17.78 MB, free: 5.27 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.001638/0.001638, allocations: 187 kB / 18.71 MB, free: 4.344 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2206/0.2206, allocations: 44.17 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3234, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.002559/0.326, allocations: 1.713 MB / 0.5201 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001594/0.3262, allocations: 81.14 kB / 0.5202 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.429e-05/0.3262, allocations: 2.156 kB / 0.5202 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.573e-05/0.3263, allocations: 20.34 kB / 0.5202 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.965e-05/0.3264, allocations: 26.03 kB / 0.5202 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001032/0.3265, allocations: 23.58 kB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.3267, allocations: 111.6 kB / 0.5203 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.3268, allocations: 47.94 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.066e-05/0.3269, allocations: 41.09 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.125e-05/0.327, allocations: 51.62 kB / 0.5205 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.327, allocations: 15.97 kB / 0.5205 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.327, allocations: 11.25 kB / 0.5205 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.3271, allocations: 27.28 kB / 0.5205 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.473e-05/0.3271, allocations: 54.55 kB / 0.5206 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.3273, allocations: 116.9 kB / 0.5207 GB, free: 1.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3273, allocations: 3.938 kB / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3273, allocations: 0 / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.3273, allocations: 1.156 kB / 0.5207 GB, free: 1.777 MB / 382.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.0005543/0.3279, allocations: 417 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3279, allocations: 10.56 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.324e-05/0.328, allocations: 40.06 kB / 0.5211 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.328, allocations: 9.906 kB / 0.5211 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.688e-05/0.3281, allocations: 183.1 kB / 0.5213 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3281, allocations: 8 kB / 0.5213 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.3282, allocations: 10.41 kB / 0.5213 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.3285, allocations: 120.6 kB / 0.5214 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3285, allocations: 8.875 kB / 0.5215 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.3285, allocations: 4.969 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3285, allocations: 2.438 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.3289, allocations: 100.8 kB / 0.5216 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006904/0.3296, allocations: 490.7 kB / 0.522 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002352/0.3298, allocations: 81.2 kB / 0.5221 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.3301, allocations: 63.81 kB / 0.5222 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.3301, allocations: 5.875 kB / 0.5222 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.3302, allocations: 43.05 kB / 0.5222 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.452e-06/0.3302, allocations: 0 / 0.5222 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.000772/0.3309, allocations: 264.4 kB / 0.5225 GB, free: 352 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.331, allocations: 57.59 kB / 0.5225 GB, free: 284 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.878e-05/0.3311, allocations: 118.5 kB / 0.5226 GB, free: 176 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.877e-06/0.3311, allocations: 25.7 kB / 0.5227 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.661e-05/0.3311, allocations: 113.4 kB / 0.5228 GB, free: 32 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3312, allocations: 21.11 kB / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/0.3312, allocations: 22.56 kB / 0.5228 GB, free: 15.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.3313, allocations: 314.6 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.3315, allocations: 39.58 kB / 0.5231 GB, free: 15.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.3317, allocations: 51.92 kB / 0.5232 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.332, allocations: 105.9 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.332, allocations: 0 / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004278/0.3324, allocations: 146.6 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3325, allocations: 6.656 kB / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3325, allocations: 0 / 0.5234 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/0.3327, allocations: 23.78 kB / 0.5235 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.3328, allocations: 17.52 kB / 0.5235 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.3339, allocations: 1.408 MB / 0.5249 GB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.3341, allocations: 19.62 kB / 0.5249 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.3341, allocations: 6.906 kB / 0.5249 GB, free: 14.07 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 9.38e-05/0.3342, allocations: 119.1 kB / 0.525 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.3342, allocations: 15.34 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.01e-05/0.3343, allocations: 10.61 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3343, allocations: 1.438 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3343, allocations: 2.156 kB / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3343, allocations: 0 / 0.525 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000682/0.335, allocations: 422.4 kB / 0.5254 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.335, allocations: 5.438 kB / 0.5254 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/0.3351, allocations: 15.8 kB / 0.5254 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.064e-05/0.3352, allocations: 23.41 kB / 0.5255 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.3352, allocations: 1.031 kB / 0.5255 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.3362, allocations: 1.402 MB / 0.5268 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3362, allocations: 1.703 kB / 0.5268 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004969/0.3367, allocations: 251.4 kB / 0.5271 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/0.3368, allocations: 87.91 kB / 0.5272 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.3368, allocations: 1.438 kB / 0.5272 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.3369, allocations: 15.89 kB / 0.5272 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.337, allocations: 10.66 kB / 0.5272 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.337, allocations: 5.312 kB / 0.5272 GB, free: 11.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.397e-05/0.3371, allocations: 97.3 kB / 0.5273 GB, free: 11.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3371, allocations: 0 / 0.5273 GB, free: 11.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.3374, allocations: 23.62 kB / 0.5273 GB, free: 11.74 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.0008689/0.3383, allocations: 0.7667 MB / 0.5281 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.3389, allocations: 206.2 kB / 0.5283 GB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.3389, allocations: 4 kB / 0.5283 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.3392, allocations: 158.3 kB / 0.5284 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.3396, allocations: 7.797 kB / 0.5284 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.342, allocations: 1.612 MB / 0.53 GB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.3423, allocations: 0.7011 MB / 0.5307 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.851e-05/0.3423, allocations: 1.953 kB / 0.5307 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.3424, allocations: 28.73 kB / 0.5307 GB, free: 8.672 MB / 398.1 MB Notification: Performance of SimCode: time 5.82e-07/0.3424, allocations: 0 / 0.5307 GB, free: 8.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.3646, allocations: 2.421 MB / 0.5331 GB, free: 7.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.483/9.848, allocations: 5.656 kB / 0.5331 GB, free: 7.555 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/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_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,reluctance.V_m,reluctance.Phi,permeance.V_m,permeance.Phi Variables in the result:ground.port.Phi,ground.port.V_m,magFluxSource.Phi,magFluxSource.V_m,magFluxSource.port_n.Phi,magFluxSource.port_n.V_m,magFluxSource.port_p.Phi,magFluxSource.port_p.V_m,permeance.G_m,permeance.Phi,permeance.V_m,permeance.port_n.Phi,permeance.port_n.V_m,permeance.port_p.Phi,permeance.port_p.V_m,rampPermeance.duration,rampPermeance.height,rampPermeance.offset,rampPermeance.startTime,rampPermeance.y,rampReluctance.duration,rampReluctance.height,rampReluctance.offset,rampReluctance.startTime,rampReluctance.y,reluctance.Phi,reluctance.R_m,reluctance.V_m,reluctance.port_n.Phi,reluctance.port_n.V_m,reluctance.port_p.Phi,reluctance.port_p.V_m,time