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.0006937/0.0006935, allocations: 97.8 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008336/0.0008336, allocations: 203.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.7 MB / 246.8 MB, free: 9.566 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1853/0.1853, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002364, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 63.57 MB / 483.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.001976/0.1127, allocations: 1.446 MB / 484.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001846/0.1129, allocations: 79.72 kB / 484.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.353e-05/0.113, allocations: 0 / 484.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.203e-05/0.113, allocations: 11.86 kB / 484.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.716e-05/0.1131, allocations: 15.86 kB / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.708e-05/0.1132, allocations: 31.97 kB / 484.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1133, allocations: 103.6 kB / 484.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1135, allocations: 39.95 kB / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.509e-05/0.1136, allocations: 39.8 kB / 484.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.1136, allocations: 47.77 kB / 485 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.1137, allocations: 4 kB / 485 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.438e-05/0.1137, allocations: 8 kB / 485 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.1137, allocations: 11.92 kB / 485 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.342e-05/0.1138, allocations: 73.5 kB / 485.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1139, allocations: 111.8 kB / 485.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1139, allocations: 0 / 485.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1139, allocations: 0 / 485.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1139, allocations: 0 / 485.2 MB, free: 2.012 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.0005406/0.1145, allocations: 415.2 kB / 485.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1145, allocations: 12.88 kB / 485.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.998e-05/0.1146, allocations: 34.75 kB / 485.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.1146, allocations: 12.84 kB / 485.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1147, allocations: 184.1 kB / 485.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.1148, allocations: 12.38 kB / 485.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.1148, allocations: 8.375 kB / 485.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.1151, allocations: 134 kB / 486 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.1152, allocations: 3.938 kB / 486 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1152, allocations: 4 kB / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1152, allocations: 4 kB / 486 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003756/0.1156, allocations: 127.9 kB / 486.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007152/0.1163, allocations: 483.2 kB / 486.6 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.1166, allocations: 102.5 kB / 486.7 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.1168, allocations: 72.94 kB / 486.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.1168, allocations: 0 / 486.8 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.1169, allocations: 42.5 kB / 486.8 MB, free: 220 kB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.1169, allocations: 3.938 kB / 486.8 MB, free: 216 kB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008425/0.1177, allocations: 295.5 kB / 487.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.1178, allocations: 55.41 kB / 487.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.518e-05/0.1179, allocations: 117.8 kB / 487.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.1179, allocations: 25.7 kB / 487.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.554e-05/0.118, allocations: 108.1 kB / 487.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.118, allocations: 23.64 kB / 487.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.118, allocations: 17.72 kB / 487.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.1181, allocations: 318.8 kB / 487.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.1183, allocations: 43.95 kB / 487.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.1185, allocations: 74.52 kB / 487.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.1188, allocations: 126.4 kB / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1188, allocations: 0 / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004378/0.1193, allocations: 170.3 kB / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.1193, allocations: 4 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1193, allocations: 0 / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.1195, allocations: 32.77 kB / 488.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.1196, allocations: 23.98 kB / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009518/0.1206, allocations: 1.301 MB / 489.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.1207, allocations: 20.02 kB / 489.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-06/0.1207, allocations: 4 kB / 489.5 MB, free: 13.24 MB / 366.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.359e-05/0.1208, allocations: 121.9 kB / 489.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.1208, allocations: 7.906 kB / 489.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.444e-05/0.1209, allocations: 16.3 kB / 489.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1209, allocations: 4 kB / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1209, allocations: 0 / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1209, allocations: 0 / 489.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006581/0.1216, allocations: 456 kB / 490.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1216, allocations: 0 / 490.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.817e-05/0.1217, allocations: 19.98 kB / 490.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-05/0.1218, allocations: 20.84 kB / 490.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1218, allocations: 4 kB / 490.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008136/0.1226, allocations: 1.3 MB / 491.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1226, allocations: 7.875 kB / 491.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.1231, allocations: 261.2 kB / 491.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.1231, allocations: 88.95 kB / 491.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1232, allocations: 4 kB / 491.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.1233, allocations: 19.97 kB / 491.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.1233, allocations: 4.125 kB / 491.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1234, allocations: 8 kB / 491.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.167e-05/0.1234, allocations: 91.7 kB / 492 MB, free: 10.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1234, allocations: 7.938 kB / 492 MB, free: 10.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.1237, allocations: 31.84 kB / 492 MB, free: 10.54 MB / 366.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.0007104/0.1244, allocations: 0.7847 MB / 492.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005228/0.1249, allocations: 230.6 kB / 493 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1249, allocations: 0 / 493 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002629/0.1252, allocations: 174.6 kB / 493.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1255, allocations: 8 kB / 493.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.1276, allocations: 1.698 MB / 494.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1278, allocations: 0.7082 MB / 495.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.372e-05/0.1278, allocations: 0 / 495.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.1279, allocations: 27.42 kB / 495.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1279, allocations: 0 / 495.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.1412, allocations: 1.991 MB / 497.6 MB, free: 4.891 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/0.1414, allocations: 224.8 kB / 497.8 MB, free: 4.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/1.908, allocations: 0 / 497.8 MB, free: 4.641 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches