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.00123/0.00123, allocations: 104.7 kB / 17.63 MB, free: 5.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.001158/0.001158, allocations: 192 kB / 18.56 MB, free: 4.434 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2078/0.2078, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 68.53 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1088, 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.003015/0.1118, allocations: 1.697 MB / 471.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001932/0.1121, allocations: 83.67 kB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.244e-05/0.1121, allocations: 4 kB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.046e-05/0.1122, allocations: 11.86 kB / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.679e-05/0.1123, allocations: 23.78 kB / 471.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.1124, allocations: 27.97 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.1126, allocations: 107.6 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.1128, allocations: 51.94 kB / 471.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.429e-05/0.1128, allocations: 47.86 kB / 471.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.584e-05/0.1129, allocations: 55.77 kB / 471.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.1129, allocations: 8 kB / 471.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.964e-05/0.113, allocations: 12 kB / 471.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.995e-05/0.113, allocations: 23.92 kB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.572e-05/0.1131, allocations: 47.78 kB / 471.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.1132, allocations: 119.9 kB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1132, allocations: 0 / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1132, allocations: 0 / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1133, allocations: 0 / 471.7 MB, free: 11.95 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.0006286/0.1139, allocations: 423.1 kB / 472.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1139, allocations: 12.03 kB / 472.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.114, allocations: 38.73 kB / 472.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.114, allocations: 12.84 kB / 472.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1142, allocations: 176.2 kB / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1142, allocations: 8.375 kB / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.1142, allocations: 8.375 kB / 472.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.1146, allocations: 129.8 kB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1146, allocations: 3.938 kB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.1146, allocations: 7.984 kB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1146, allocations: 4 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003525/0.115, allocations: 111.7 kB / 472.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.1158, allocations: 479.3 kB / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.116, allocations: 82.53 kB / 473.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1162, allocations: 64.94 kB / 473.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.1163, allocations: 0 / 473.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.1163, allocations: 38.44 kB / 473.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.1163, allocations: 4 kB / 473.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0009252/0.1172, allocations: 267.4 kB / 473.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.1173, allocations: 59.39 kB / 473.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.1174, allocations: 125.7 kB / 473.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.1174, allocations: 25.7 kB / 473.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.151e-05/0.1175, allocations: 108.1 kB / 473.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.1176, allocations: 19.75 kB / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.1176, allocations: 21.7 kB / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1177, allocations: 310.8 kB / 474.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.1179, allocations: 51.89 kB / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.1181, allocations: 62.5 kB / 474.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.1184, allocations: 98.45 kB / 474.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1184, allocations: 0 / 474.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004241/0.1188, allocations: 150.2 kB / 474.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1189, allocations: 8 kB / 474.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1189, allocations: 4.062 kB / 474.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.1191, allocations: 20.84 kB / 474.5 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.1192, allocations: 19.98 kB / 474.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.1204, allocations: 1.399 MB / 476 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1205, allocations: 16.02 kB / 476 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1205, allocations: 4 kB / 476 MB, free: 7.203 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.782e-05/0.1206, allocations: 121.9 kB / 476.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.1206, allocations: 7.844 kB / 476.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.1207, allocations: 16.36 kB / 476.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1207, allocations: 0 / 476.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1207, allocations: 0 / 476.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1207, allocations: 0 / 476.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000659/0.1214, allocations: 435.9 kB / 476.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-06/0.1214, allocations: 0 / 476.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.891e-05/0.1215, allocations: 15.98 kB / 476.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.4e-05/0.1216, allocations: 20.84 kB / 476.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1216, allocations: 8 kB / 476.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009042/0.1225, allocations: 1.399 MB / 478 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1225, allocations: 0 / 478 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004272/0.1229, allocations: 241.1 kB / 478.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.123, allocations: 89 kB / 478.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.123, allocations: 0 / 478.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.1231, allocations: 19.92 kB / 478.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.1232, allocations: 12.11 kB / 478.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.1232, allocations: 4 kB / 478.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.641e-05/0.1233, allocations: 99.2 kB / 478.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1233, allocations: 3.938 kB / 478.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002601/0.1235, allocations: 27.94 kB / 478.5 MB, free: 4.449 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.000849/0.1244, allocations: 0.7648 MB / 479.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.125, allocations: 214.5 kB / 479.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.125, allocations: 4 kB / 479.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002634/0.1253, allocations: 154.6 kB / 479.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.1257, allocations: 16.12 kB / 479.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.128, allocations: 1.591 MB / 481.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.1283, allocations: 0.7002 MB / 481.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.746e-05/0.1284, allocations: 0 / 481.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.1284, allocations: 31.42 kB / 481.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1284, allocations: 0 / 481.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.1508, allocations: 2.311 MB / 484.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.36/9.511, allocations: 8.953 kB / 484.3 MB, free: 14.59 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