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: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 226.5 MB / 244.1 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007801/0.0007803, allocations: 106.2 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3818/0.3818, allocations: 44.82 MB / 393 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002738, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3901, allocations: 62.95 MB / 0.5165 GB, free: 37.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.5061, allocations: 89.14 MB / 0.6035 GB, free: 244 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.5064, allocations: 71.91 kB / 0.6036 GB, free: 172 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008988/0.5154, allocations: 2.986 MB / 0.6065 GB, free: 13.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5154, allocations: 0 / 0.6065 GB, free: 13.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.5154, allocations: 8 kB / 0.6065 GB, free: 13.16 MB / 426.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.0006572/0.5161, allocations: 439.1 kB / 0.6069 GB, free: 12.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.5161, allocations: 12.03 kB / 0.6069 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.5164, allocations: 44.72 kB / 0.607 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.5166, allocations: 187.1 kB / 0.6072 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.5167, allocations: 12.36 kB / 0.6072 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.5167, allocations: 4.375 kB / 0.6072 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.517, allocations: 148.8 kB / 0.6073 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.5171, allocations: 192 / 0.6073 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.5171, allocations: 3.938 kB / 0.6073 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.5171, allocations: 4 kB / 0.6073 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.5174, allocations: 103.9 kB / 0.6074 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00095/0.5184, allocations: 465.3 kB / 0.6079 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.5187, allocations: 90.53 kB / 0.608 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.5189, allocations: 52.86 kB / 0.608 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.5189, allocations: 0 / 0.608 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.519, allocations: 42.55 kB / 0.608 GB, free: 11.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.519, allocations: 0 / 0.608 GB, free: 11.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.001393/0.5204, allocations: 365 kB / 0.6084 GB, free: 11.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.5204, allocations: 106.8 kB / 0.6085 GB, free: 10.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.5206, allocations: 144.4 kB / 0.6086 GB, free: 10.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.5206, allocations: 33.64 kB / 0.6087 GB, free: 10.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.579e-05/0.5208, allocations: 116.1 kB / 0.6088 GB, free: 10.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.5208, allocations: 19.66 kB / 0.6088 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-06/0.5208, allocations: 0 / 0.6088 GB, free: 10.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5209, allocations: 322.8 kB / 0.6091 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.5213, allocations: 71.94 kB / 0.6092 GB, free: 10.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.5215, allocations: 104.2 kB / 0.6093 GB, free: 10.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004394/0.522, allocations: 158.4 kB / 0.6094 GB, free: 9.914 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.522, allocations: 0 / 0.6094 GB, free: 9.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005134/0.5225, allocations: 201.4 kB / 0.6096 GB, free: 9.711 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.5225, allocations: 4.188 kB / 0.6096 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5225, allocations: 0 / 0.6096 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.5226, allocations: 7.875 kB / 0.6096 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.5232, allocations: 95.97 kB / 0.6097 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.5248, allocations: 1.406 MB / 0.6111 GB, free: 8.066 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.525, allocations: 27.97 kB / 0.6111 GB, free: 8.039 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.5251, allocations: 4 kB / 0.6111 GB, free: 8.035 MB / 426.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 0.0001515/0.5253, allocations: 122 kB / 0.6112 GB, free: 7.906 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.5253, allocations: 11.84 kB / 0.6112 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005324/0.5259, allocations: 190.2 kB / 0.6114 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.5259, allocations: 0 / 0.6114 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.5259, allocations: 0 / 0.6114 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.5259, allocations: 0 / 0.6114 GB, free: 7.703 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009405/0.5268, allocations: 490.3 kB / 0.6119 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5269, allocations: 0 / 0.6119 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.527, allocations: 31.97 kB / 0.6119 GB, free: 7.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.527, allocations: 7.938 kB / 0.6119 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.5271, allocations: 0 / 0.6119 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.5271, allocations: 240 / 0.6119 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5271, allocations: 4 kB / 0.6119 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005796/0.5277, allocations: 275.3 kB / 0.6122 GB, free: 6.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.072e-05/0.5278, allocations: 85.02 kB / 0.6123 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.5278, allocations: 8 kB / 0.6123 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.528, allocations: 27.97 kB / 0.6123 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.5281, allocations: 7.984 kB / 0.6123 GB, free: 6.695 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.5281, allocations: 4.062 kB / 0.6123 GB, free: 6.691 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.5282, allocations: 123.2 kB / 0.6124 GB, free: 6.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5282, allocations: 0 / 0.6124 GB, free: 6.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.5285, allocations: 28 kB / 0.6125 GB, free: 6.543 MB / 426.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.0002024/0.5287, allocations: 107.1 kB / 0.6126 GB, free: 6.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009234/0.5297, allocations: 192 kB / 0.6128 GB, free: 6.242 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5297, allocations: 0 / 0.6128 GB, free: 6.242 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.5299, allocations: 71.89 kB / 0.6128 GB, free: 6.172 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.5303, allocations: 28.25 kB / 0.6129 GB, free: 6.148 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.5316, allocations: 435.2 kB / 0.6133 GB, free: 5.684 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.532, allocations: 0.7043 MB / 0.614 GB, free: 4.953 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.678e-05/0.532, allocations: 15.44 kB / 0.614 GB, free: 4.938 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.532, allocations: 0 / 0.614 GB, free: 4.938 MB / 426.7 MB Notification: Performance of Templates: time 0.003594/0.5356, allocations: 1.803 MB / 0.6157 GB, free: 3.148 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (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 & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestSaturatingInductor --alarm=480 -emit_protected > 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