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.0009854/0.0009854, allocations: 107.5 kB / 17.32 MB, free: 5.672 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.001682/0.001683, allocations: 193.3 kB / 18.25 MB, free: 4.977 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.43/1.43, allocations: 222.9 MB / 241.9 MB, free: 13.73 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.2102/0.2102, allocations: 44.17 MB / 336.3 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 60.38 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1084, allocations: 60.83 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.002946/0.1114, allocations: 1.765 MB / 470.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001585/0.1116, allocations: 87.66 kB / 470.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.1117, allocations: 4 kB / 470.7 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.087e-05/0.1117, allocations: 7.922 kB / 470.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.1118, allocations: 23.84 kB / 470.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.993e-05/0.1119, allocations: 15.98 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.1121, allocations: 111.6 kB / 470.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1122, allocations: 55.94 kB / 470.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.635e-05/0.1123, allocations: 43.8 kB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.911e-05/0.1124, allocations: 55.77 kB / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.1124, allocations: 12 kB / 471 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.084e-05/0.1125, allocations: 12 kB / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.1125, allocations: 23.92 kB / 471 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.821e-05/0.1126, allocations: 51.78 kB / 471.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.1127, allocations: 115.9 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1127, allocations: 0 / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1127, allocations: 0 / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1127, allocations: 0 / 471.2 MB, free: 12.24 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.0006278/0.1134, allocations: 419.1 kB / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.1134, allocations: 12.03 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.1135, allocations: 46.73 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/0.1135, allocations: 8.844 kB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1137, allocations: 176.2 kB / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1137, allocations: 8.375 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.1137, allocations: 12.38 kB / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.114, allocations: 121.8 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1141, allocations: 3.938 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.1141, allocations: 12 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1141, allocations: 0 / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.1144, allocations: 115.7 kB / 472.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006972/0.1151, allocations: 471.3 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.1154, allocations: 82.53 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.1156, allocations: 60.94 kB / 472.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1156, allocations: 8 kB / 472.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.1157, allocations: 38.44 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.1157, allocations: 0 / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000811/0.1165, allocations: 263.4 kB / 473 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.1165, allocations: 63.33 kB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1167, allocations: 113.8 kB / 473.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1167, allocations: 29.7 kB / 473.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.411e-05/0.1168, allocations: 112.1 kB / 473.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.1168, allocations: 19.69 kB / 473.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.1168, allocations: 25.7 kB / 473.4 MB, free: 9.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.117, allocations: 310.8 kB / 473.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.1171, allocations: 39.95 kB / 473.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1173, allocations: 62.53 kB / 473.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.1176, allocations: 98.39 kB / 473.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1176, allocations: 0 / 473.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003927/0.118, allocations: 150.2 kB / 474 MB, free: 9.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.118, allocations: 4 kB / 474 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1181, allocations: 0 / 474 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.1182, allocations: 24.84 kB / 474 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.1184, allocations: 20.36 kB / 474.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.1194, allocations: 1.41 MB / 475.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.898e-05/0.1195, allocations: 16.02 kB / 475.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1195, allocations: 7.984 kB / 475.5 MB, free: 7.5 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 9.242e-05/0.1196, allocations: 113.8 kB / 475.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.1196, allocations: 11.84 kB / 475.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.232e-05/0.1197, allocations: 12.36 kB / 475.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1197, allocations: 8.062 kB / 475.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1197, allocations: 0 / 475.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1197, allocations: 0 / 475.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006307/0.1203, allocations: 431.9 kB / 476.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1204, allocations: 0 / 476.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.76e-05/0.1204, allocations: 16.02 kB / 476.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.556e-05/0.1205, allocations: 24.84 kB / 476.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.1205, allocations: 4 kB / 476.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008408/0.1214, allocations: 1.395 MB / 477.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1214, allocations: 4.031 kB / 477.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004324/0.1218, allocations: 253.1 kB / 477.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.944e-05/0.1219, allocations: 92.94 kB / 477.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1219, allocations: 0 / 477.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.122, allocations: 11.98 kB / 477.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.1221, allocations: 11.98 kB / 477.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.1221, allocations: 4 kB / 477.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.1222, allocations: 99.58 kB / 478 MB, free: 4.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1222, allocations: 4 kB / 478 MB, free: 4.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.1224, allocations: 23.94 kB / 478 MB, free: 4.746 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.0007016/0.1231, allocations: 0.7653 MB / 478.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005029/0.1237, allocations: 214.7 kB / 479 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1237, allocations: 0 / 479 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.1239, allocations: 158.6 kB / 479.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1243, allocations: 11.88 kB / 479.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.1263, allocations: 1.622 MB / 480.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.1265, allocations: 0.7002 MB / 481.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.924e-05/0.1266, allocations: 4 kB / 481.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.1266, allocations: 23.42 kB / 481.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1267, allocations: 0 / 481.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.1416, allocations: 2.141 MB / 483.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.1418, allocations: 240.5 kB / 483.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/1.917, allocations: 0 / 483.9 MB, free: 14.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