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.001468/0.001468, allocations: 104.1 kB / 17.63 MB, free: 5.48 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.001699/0.001699, allocations: 192 kB / 18.56 MB, free: 4.562 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.427/1.427, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2352/0.2352, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001202, allocations: 60.94 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1151, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.00292/0.1181, allocations: 1.708 MB / 471.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001774/0.1183, allocations: 91.64 kB / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.256e-05/0.1184, allocations: 0 / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.24e-05/0.1184, allocations: 7.875 kB / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.93e-05/0.1185, allocations: 23.78 kB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001098/0.1187, allocations: 27.95 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.1188, allocations: 107.6 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.119, allocations: 58.86 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.205e-05/0.1191, allocations: 39.86 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.946e-05/0.1192, allocations: 63.75 kB / 471.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.1192, allocations: 8 kB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.115e-05/0.1192, allocations: 12 kB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.1193, allocations: 23.92 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.069e-05/0.1193, allocations: 43.8 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.1195, allocations: 123.8 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1195, allocations: 0 / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1195, allocations: 4 kB / 471.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1196, allocations: 0 / 471.7 MB, free: 11.92 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.000568/0.1201, allocations: 419.1 kB / 472.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1202, allocations: 12.03 kB / 472.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.56e-05/0.1202, allocations: 34.75 kB / 472.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.1202, allocations: 16.83 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.1204, allocations: 180.2 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1204, allocations: 8.375 kB / 472.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.1204, allocations: 8.375 kB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.1207, allocations: 119.8 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1207, allocations: 3.938 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.1208, allocations: 4 kB / 472.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1208, allocations: 7.938 kB / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/0.1211, allocations: 111.8 kB / 472.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006681/0.1218, allocations: 479.3 kB / 473.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.122, allocations: 78.53 kB / 473.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002122/0.1223, allocations: 60.94 kB / 473.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.1223, allocations: 8 kB / 473.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.1223, allocations: 38.44 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.1223, allocations: 0 / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000786/0.1231, allocations: 267.4 kB / 473.5 MB, free: 9.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.1232, allocations: 55.34 kB / 473.6 MB, free: 9.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.263e-05/0.1233, allocations: 125.7 kB / 473.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.1233, allocations: 29.64 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.1233, allocations: 112.1 kB / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.1234, allocations: 19.75 kB / 473.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.1234, allocations: 17.72 kB / 473.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1235, allocations: 318.8 kB / 474.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.1237, allocations: 39.97 kB / 474.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.1239, allocations: 54.53 kB / 474.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.1242, allocations: 102.4 kB / 474.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1242, allocations: 0 / 474.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003989/0.1246, allocations: 150.6 kB / 474.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1246, allocations: 8 kB / 474.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1246, allocations: 0 / 474.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001457/0.1248, allocations: 28.83 kB / 474.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1249, allocations: 19.97 kB / 474.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.1261, allocations: 1.394 MB / 476 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.988e-05/0.1263, allocations: 24.06 kB / 476 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.1263, allocations: 0 / 476 MB, free: 7.191 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.0001008/0.1264, allocations: 117.8 kB / 476.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.1264, allocations: 7.844 kB / 476.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.125e-05/0.1264, allocations: 12.38 kB / 476.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1264, allocations: 0 / 476.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.1264, allocations: 3.938 kB / 476.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1265, allocations: 0 / 476.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006554/0.1271, allocations: 431.9 kB / 476.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.1271, allocations: 3.984 kB / 476.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.408e-05/0.1272, allocations: 15.98 kB / 476.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.739e-05/0.1273, allocations: 24.88 kB / 476.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.1273, allocations: 8 kB / 476.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000876/0.1282, allocations: 1.399 MB / 478 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1282, allocations: 0 / 478 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004201/0.1287, allocations: 245.1 kB / 478.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.1287, allocations: 85.02 kB / 478.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.1287, allocations: 3.938 kB / 478.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.1288, allocations: 11.98 kB / 478.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.1289, allocations: 11.98 kB / 478.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.1289, allocations: 0 / 478.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.529e-05/0.129, allocations: 99.2 kB / 478.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.129, allocations: 0 / 478.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.1292, allocations: 31.94 kB / 478.5 MB, free: 4.445 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.0006951/0.1299, allocations: 0.7725 MB / 479.2 MB, free: 3.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005198/0.1305, allocations: 206.6 kB / 479.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1305, allocations: 4 kB / 479.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.1307, allocations: 162.8 kB / 479.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.1311, allocations: 7.938 kB / 479.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.1332, allocations: 1.595 MB / 481.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1335, allocations: 0.6963 MB / 481.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.889e-05/0.1335, allocations: 7.984 kB / 481.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.181e-05/0.1336, allocations: 23.44 kB / 481.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1336, allocations: 3.938 kB / 481.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.1549, allocations: 2.314 MB / 484.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.255/9.41, allocations: 12.53 kB / 484.3 MB, free: 14.57 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.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_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches