Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009575/0.0009576, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007569/0.0007569, allocations: 96.55 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2692/0.2692, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002369/0.000237, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2545, allocations: 62.96 MB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.001591/0.2561, allocations: 1.575 MB / 0.5175 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006689/0.2568, allocations: 0.5521 MB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.091e-05/0.2568, allocations: 2.75 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.544e-05/0.2569, allocations: 7.406 kB / 0.518 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.257, allocations: 32.38 kB / 0.5181 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.2573, allocations: 58.89 kB / 0.5181 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.2574, allocations: 142.5 kB / 0.5183 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2575, allocations: 40.03 kB / 0.5183 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.2576, allocations: 68.55 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.297e-05/0.2577, allocations: 56.66 kB / 0.5184 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.2577, allocations: 5.781 kB / 0.5184 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.303e-05/0.2578, allocations: 8.875 kB / 0.5184 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.261e-05/0.2578, allocations: 28.33 kB / 0.5185 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.711e-05/0.2579, allocations: 80.67 kB / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.258, allocations: 105.8 kB / 0.5186 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.258, allocations: 0 / 0.5186 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.258, allocations: 4 kB / 0.5187 GB, free: 35.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.258, allocations: 0 / 0.5187 GB, free: 35.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005634/0.2586, allocations: 430.5 kB / 0.5191 GB, free: 34.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2586, allocations: 8.562 kB / 0.5191 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.2587, allocations: 37.69 kB / 0.5191 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.2589, allocations: 45.44 kB / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.2591, allocations: 191.7 kB / 0.5193 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.2591, allocations: 3.375 kB / 0.5193 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.2591, allocations: 14.31 kB / 0.5193 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.2594, allocations: 141.4 kB / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2594, allocations: 0 / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.2594, allocations: 0 / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2594, allocations: 10.06 kB / 0.5195 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/0.2597, allocations: 102.9 kB / 0.5196 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.2604, allocations: 457.5 kB / 0.52 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.2607, allocations: 104.8 kB / 0.5201 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.2608, allocations: 49.73 kB / 0.5202 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.2609, allocations: 3.094 kB / 0.5202 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.262e-05/0.2609, allocations: 30.56 kB / 0.5202 GB, free: 34.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2609, allocations: 0 / 0.5202 GB, free: 34.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.001252/0.2621, allocations: 374.2 kB / 0.5206 GB, free: 33.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.2622, allocations: 102.8 kB / 0.5207 GB, free: 33.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.2623, allocations: 150.1 kB / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.2623, allocations: 25.7 kB / 0.5208 GB, free: 33.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.2623, allocations: 113.1 kB / 0.5209 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.2624, allocations: 22.06 kB / 0.521 GB, free: 33.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/0.2624, allocations: 4 kB / 0.521 GB, free: 33.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.171e-05/0.2624, allocations: 321.5 kB / 0.5213 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.2626, allocations: 69.98 kB / 0.5213 GB, free: 33.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.2629, allocations: 114.1 kB / 0.5214 GB, free: 33.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/0.2633, allocations: 148.6 kB / 0.5216 GB, free: 33.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.2633, allocations: 3.938 kB / 0.5216 GB, free: 33.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004963/0.2638, allocations: 204.4 kB / 0.5218 GB, free: 33.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.2638, allocations: 9.875 kB / 0.5218 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.2638, allocations: 0 / 0.5218 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2638, allocations: 3.031 kB / 0.5218 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005451/0.2644, allocations: 96.06 kB / 0.5219 GB, free: 33.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009383/0.2653, allocations: 1.401 MB / 0.5233 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.2656, allocations: 38.08 kB / 0.5233 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.2656, allocations: 2.844 kB / 0.5233 GB, free: 31.6 MB / 378.7 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.239e-05/0.2657, allocations: 127 kB / 0.5234 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.2657, allocations: 6.938 kB / 0.5234 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004668/0.2662, allocations: 192 kB / 0.5236 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.2662, allocations: 0 / 0.5236 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.02e-07/0.2662, allocations: 4 kB / 0.5236 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2662, allocations: 0 / 0.5236 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006691/0.2669, allocations: 487.7 kB / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2669, allocations: 0 / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.267, allocations: 34.89 kB / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.267, allocations: 0 / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2671, allocations: 3.375 kB / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2671, allocations: 0 / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2671, allocations: 2.875 kB / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004619/0.2675, allocations: 273 kB / 0.5244 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/0.2676, allocations: 88.3 kB / 0.5245 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2676, allocations: 0 / 0.5245 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.2678, allocations: 26.45 kB / 0.5245 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.2679, allocations: 10.19 kB / 0.5245 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.196e-06/0.2679, allocations: 10.72 kB / 0.5245 GB, free: 30.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.215e-05/0.2679, allocations: 111.9 kB / 0.5246 GB, free: 30.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2679, allocations: 0 / 0.5246 GB, free: 30.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002434/0.2682, allocations: 31 kB / 0.5246 GB, free: 30.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005955/0.2688, allocations: 0.7986 MB / 0.5254 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.2696, allocations: 193.1 kB / 0.5256 GB, free: 29.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2696, allocations: 0 / 0.5256 GB, free: 29.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.2698, allocations: 78.09 kB / 0.5257 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2701, allocations: 17.72 kB / 0.5257 GB, free: 29.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.2722, allocations: 1.022 MB / 0.5267 GB, free: 29.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.725e-05/0.2723, allocations: 0.7029 MB / 0.5274 GB, free: 28.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.506e-05/0.2724, allocations: 32.61 kB / 0.5274 GB, free: 28.61 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2724, allocations: 0 / 0.5274 GB, free: 28.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/2.907, allocations: 2.048 MB / 0.5294 GB, free: 28.45 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches