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.0006878/0.0006878, allocations: 92.88 kB / 17.35 MB, free: 6.344 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.0007749/0.0007749, allocations: 172.2 kB / 18.25 MB, free: 5.504 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.302/1.302, allocations: 223.3 MB / 242.3 MB, free: 14.46 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.2229/0.2229, allocations: 44.24 MB / 337.7 MB, free: 2.492 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002973, allocations: 10.47 kB / 410.4 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1075, allocations: 61.91 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.001926/0.1095, allocations: 1.43 MB / 473.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002144/0.1097, allocations: 79.73 kB / 473.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.601e-05/0.1098, allocations: 4 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.469e-05/0.1098, allocations: 7.922 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.282e-05/0.1099, allocations: 19.84 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001175/0.11, allocations: 23.98 kB / 473.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.1102, allocations: 103.6 kB / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.1103, allocations: 55.81 kB / 474.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.963e-05/0.1104, allocations: 31.86 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.1105, allocations: 47.77 kB / 474.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.1105, allocations: 8 kB / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.512e-05/0.1106, allocations: 4 kB / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.1106, allocations: 15.92 kB / 474.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.579e-05/0.1107, allocations: 69.48 kB / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.1108, allocations: 107.8 kB / 474.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1108, allocations: 0 / 474.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1108, allocations: 4 kB / 474.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1108, allocations: 4 kB / 474.4 MB, free: 11.2 MB / 350.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.0005496/0.1114, allocations: 407.2 kB / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1114, allocations: 8.031 kB / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.1115, allocations: 54.67 kB / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.1115, allocations: 8.844 kB / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.1116, allocations: 172.2 kB / 475 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1117, allocations: 8.375 kB / 475 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.1117, allocations: 8.375 kB / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.112, allocations: 142.1 kB / 475.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.112, allocations: 3.938 kB / 475.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1121, allocations: 4 kB / 475.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.505e-06/0.1121, allocations: 4 kB / 475.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003768/0.1125, allocations: 127.8 kB / 475.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007457/0.1132, allocations: 487.2 kB / 475.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.1135, allocations: 94.53 kB / 475.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.1137, allocations: 76.88 kB / 475.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.1137, allocations: 0 / 475.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1138, allocations: 38.5 kB / 476 MB, free: 9.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.1138, allocations: 0 / 476 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008441/0.1146, allocations: 307.4 kB / 476.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.1147, allocations: 51.41 kB / 476.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.561e-05/0.1148, allocations: 121.8 kB / 476.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.1148, allocations: 25.7 kB / 476.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.953e-05/0.1149, allocations: 116.1 kB / 476.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.1149, allocations: 23.62 kB / 476.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.1149, allocations: 17.72 kB / 476.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.115, allocations: 314.8 kB / 476.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.1152, allocations: 51.97 kB / 477 MB, free: 8.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1154, allocations: 70.53 kB / 477 MB, free: 8.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.1157, allocations: 126.4 kB / 477.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1157, allocations: 0 / 477.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004325/0.1162, allocations: 166.3 kB / 477.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1162, allocations: 4 kB / 477.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1162, allocations: 64 / 477.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001324/0.1163, allocations: 24.84 kB / 477.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.1165, allocations: 23.98 kB / 477.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000945/0.1174, allocations: 1.308 MB / 478.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1175, allocations: 16.33 kB / 478.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1176, allocations: 4 kB / 478.7 MB, free: 6.422 MB / 350.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.0001038/0.1177, allocations: 121.8 kB / 478.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.1177, allocations: 11.91 kB / 478.8 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.1177, allocations: 20.3 kB / 478.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1177, allocations: 0 / 478.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1178, allocations: 4 kB / 478.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1178, allocations: 0 / 478.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006666/0.1184, allocations: 444 kB / 479.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1184, allocations: 0 / 479.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.429e-05/0.1185, allocations: 24.02 kB / 479.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.75e-05/0.1186, allocations: 24.84 kB / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.1186, allocations: 0 / 479.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008644/0.1195, allocations: 1.304 MB / 480.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1195, allocations: 3.938 kB / 480.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.12, allocations: 261.3 kB / 480.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.12, allocations: 89.03 kB / 481 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.12, allocations: 3.984 kB / 481 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.1202, allocations: 23.92 kB / 481 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.1202, allocations: 7.984 kB / 481 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.1202, allocations: 8.125 kB / 481 MB, free: 3.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.415e-05/0.1203, allocations: 95.64 kB / 481.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1203, allocations: 0 / 481.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002548/0.1206, allocations: 31.84 kB / 481.2 MB, free: 3.719 MB / 350.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.0007123/0.1213, allocations: 0.8003 MB / 482 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004905/0.1218, allocations: 226.6 kB / 482.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1218, allocations: 0 / 482.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.1221, allocations: 174.8 kB / 482.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.1224, allocations: 10.41 kB / 482.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.1244, allocations: 1.696 MB / 484.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.1247, allocations: 0.6965 MB / 484.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.704e-05/0.1247, allocations: 7.938 kB / 484.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.456e-05/0.1248, allocations: 27.42 kB / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1248, allocations: 3.938 kB / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01223/0.137, allocations: 1.997 MB / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.1373, allocations: 221.4 kB / 487 MB, free: 13.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/1.857, allocations: 3.938 kB / 487 MB, free: 13.81 MB / 366.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) Reference file matches