Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 113.4 kB / 18.45 MB, free: 4.602 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.001207/0.001207, allocations: 185.1 kB / 19.38 MB, free: 3.684 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.332/1.332, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.2036/0.2036, allocations: 44.18 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3491, allocations: 60.82 MB / 0.5195 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003257/0.3524, allocations: 1.894 MB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009536/0.3533, allocations: 0.5415 MB / 0.5219 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3535, allocations: 1.5 kB / 0.5219 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.019e-05/0.3536, allocations: 14.12 kB / 0.5219 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.3539, allocations: 39.03 kB / 0.522 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.3541, allocations: 79.53 kB / 0.5221 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.3544, allocations: 162.5 kB / 0.5222 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.3545, allocations: 28.69 kB / 0.5222 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.3547, allocations: 69.02 kB / 0.5223 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.3548, allocations: 69.67 kB / 0.5224 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.3549, allocations: 11.94 kB / 0.5224 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.726e-05/0.3549, allocations: 12.88 kB / 0.5224 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.316e-05/0.355, allocations: 30.55 kB / 0.5224 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.323e-05/0.355, allocations: 66.88 kB / 0.5225 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.3553, allocations: 137.5 kB / 0.5226 GB, free: 1.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3553, allocations: 0 / 0.5226 GB, free: 1.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3553, allocations: 3.938 kB / 0.5226 GB, free: 1.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3553, allocations: 1.062 kB / 0.5226 GB, free: 1.547 MB / 382.1 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.0007779/0.3561, allocations: 445.7 kB / 0.523 GB, free: 1.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3561, allocations: 9.656 kB / 0.5231 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.376e-05/0.3562, allocations: 19.84 kB / 0.5231 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.3563, allocations: 188.6 kB / 0.5233 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.3564, allocations: 6.75 kB / 0.5233 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.3564, allocations: 9.5 kB / 0.5233 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.3567, allocations: 146.6 kB / 0.5234 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3568, allocations: 0 / 0.5234 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.3568, allocations: 5.281 kB / 0.5234 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3568, allocations: 2.438 kB / 0.5234 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.3571, allocations: 95.7 kB / 0.5235 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008092/0.3579, allocations: 449.5 kB / 0.5239 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.3582, allocations: 92.56 kB / 0.524 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.3584, allocations: 45.45 kB / 0.5241 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3584, allocations: 1.469 kB / 0.5241 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.3584, allocations: 35.12 kB / 0.5241 GB, free: 328 kB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.483e-06/0.3585, allocations: 1.438 kB / 0.5241 GB, free: 328 kB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.001359/0.3598, allocations: 315.6 kB / 0.5244 GB, free: 224 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.3599, allocations: 104.5 kB / 0.5245 GB, free: 96 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.36, allocations: 148.2 kB / 0.5246 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.3601, allocations: 27.38 kB / 0.5247 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.689e-05/0.3601, allocations: 113.9 kB / 0.5248 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.1e-05/0.3602, allocations: 23.92 kB / 0.5248 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.445e-05/0.3603, allocations: 27.22 kB / 0.5248 GB, free: 15.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3604, allocations: 320.2 kB / 0.5251 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.3607, allocations: 60.73 kB / 0.5252 GB, free: 15.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.3609, allocations: 93.08 kB / 0.5253 GB, free: 15.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.3614, allocations: 135.3 kB / 0.5254 GB, free: 15.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3614, allocations: 0 / 0.5254 GB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005408/0.3619, allocations: 183.2 kB / 0.5256 GB, free: 15.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.362, allocations: 8.188 kB / 0.5256 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.362, allocations: 1.891 kB / 0.5256 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.362, allocations: 1.312 kB / 0.5256 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005822/0.3626, allocations: 91.28 kB / 0.5257 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.364, allocations: 1.503 MB / 0.5271 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.3643, allocations: 31.27 kB / 0.5272 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3643, allocations: 11.91 kB / 0.5272 GB, free: 13.73 MB / 398.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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.3644, allocations: 120 kB / 0.5273 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.017e-05/0.3645, allocations: 9.406 kB / 0.5273 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005047/0.365, allocations: 166.4 kB / 0.5275 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.365, allocations: 5.062 kB / 0.5275 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.365, allocations: 5.219 kB / 0.5275 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.365, allocations: 0.5156 kB / 0.5275 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008304/0.3658, allocations: 462.3 kB / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3659, allocations: 1.25 kB / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.366, allocations: 30.28 kB / 0.528 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.366, allocations: 1.156 kB / 0.528 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.3661, allocations: 4.844 kB / 0.528 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3661, allocations: 8.75 kB / 0.528 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3661, allocations: 0 / 0.528 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005241/0.3666, allocations: 247 kB / 0.5282 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.3667, allocations: 85 kB / 0.5283 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.3667, allocations: 1.344 kB / 0.5283 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3669, allocations: 25.31 kB / 0.5283 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.367, allocations: 9.812 kB / 0.5283 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.367, allocations: 3.188 kB / 0.5283 GB, free: 12.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.606e-05/0.3671, allocations: 109.9 kB / 0.5284 GB, free: 12.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3671, allocations: 4 kB / 0.5284 GB, free: 12.81 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000277/0.3674, allocations: 30.97 kB / 0.5285 GB, free: 12.81 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001077/0.3675, allocations: 98.09 kB / 0.5286 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008661/0.3684, allocations: 174 kB / 0.5287 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3684, allocations: 0.9375 kB / 0.5287 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.3686, allocations: 63.8 kB / 0.5288 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.369, allocations: 21.42 kB / 0.5288 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.3702, allocations: 402.6 kB / 0.5292 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.3705, allocations: 0.6994 MB / 0.5299 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.333e-05/0.3706, allocations: 18.3 kB / 0.5299 GB, free: 11.63 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3706, allocations: 0 / 0.5299 GB, free: 11.63 MB / 398.1 MB Notification: Performance of Templates: time 0.004081/0.3747, allocations: 1.839 MB / 0.5317 GB, free: 10.67 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches