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.001247/0.001248, allocations: 118.1 kB / 17.79 MB, free: 5.254 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.001349/0.001349, allocations: 183 kB / 18.72 MB, free: 4.332 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.326/1.326, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2003/0.2003, allocations: 44.18 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 56.14 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3919, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002817/0.3948, allocations: 1.906 MB / 0.5207 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008135/0.3956, allocations: 0.5374 MB / 0.5213 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.492e-05/0.3957, allocations: 1.094 kB / 0.5213 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.481e-05/0.3958, allocations: 14.56 kB / 0.5213 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.396, allocations: 38.38 kB / 0.5213 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.3962, allocations: 79.62 kB / 0.5214 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.3964, allocations: 155.2 kB / 0.5215 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.3966, allocations: 44.53 kB / 0.5216 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.3967, allocations: 69.14 kB / 0.5216 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.3969, allocations: 65.8 kB / 0.5217 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.3969, allocations: 12.53 kB / 0.5217 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.037e-05/0.3969, allocations: 12.47 kB / 0.5217 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.444e-05/0.397, allocations: 29.31 kB / 0.5218 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.397, allocations: 64.36 kB / 0.5218 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.3973, allocations: 138.9 kB / 0.522 GB, free: 1.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3973, allocations: 1.844 kB / 0.522 GB, free: 1.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3973, allocations: 3.938 kB / 0.522 GB, free: 1.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3973, allocations: 4 kB / 0.522 GB, free: 1.535 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.0007146/0.398, allocations: 449.8 kB / 0.5224 GB, free: 1.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.398, allocations: 8.812 kB / 0.5224 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.3981, allocations: 12.39 kB / 0.5224 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3982, allocations: 196.5 kB / 0.5226 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.3983, allocations: 6.562 kB / 0.5226 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.3983, allocations: 9.594 kB / 0.5226 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.3986, allocations: 141.8 kB / 0.5228 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3986, allocations: 0 / 0.5228 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.3987, allocations: 5.156 kB / 0.5228 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3987, allocations: 2.906 kB / 0.5228 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.399, allocations: 91.73 kB / 0.5228 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007629/0.3998, allocations: 457.1 kB / 0.5233 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.4001, allocations: 89.19 kB / 0.5234 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.4003, allocations: 44.31 kB / 0.5234 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.4003, allocations: 1.969 kB / 0.5234 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.4003, allocations: 35.41 kB / 0.5234 GB, free: 320 kB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.4003, allocations: 0 / 0.5234 GB, free: 320 kB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.001396/0.4017, allocations: 325.2 kB / 0.5238 GB, free: 208 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.4018, allocations: 105.9 kB / 0.5239 GB, free: 80 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.402, allocations: 142.9 kB / 0.524 GB, free: 15.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.402, allocations: 26.83 kB / 0.524 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.377e-05/0.4021, allocations: 119 kB / 0.5241 GB, free: 15.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.4021, allocations: 19.78 kB / 0.5242 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.4022, allocations: 34.03 kB / 0.5242 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4023, allocations: 319.8 kB / 0.5245 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.4026, allocations: 58.17 kB / 0.5245 GB, free: 15.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.4028, allocations: 96.69 kB / 0.5246 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004532/0.4033, allocations: 134.5 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4033, allocations: 1.125 kB / 0.5248 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005489/0.4039, allocations: 182.2 kB / 0.5249 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.4039, allocations: 10.41 kB / 0.525 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4039, allocations: 0 / 0.525 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.4039, allocations: 2.469 kB / 0.525 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005657/0.4045, allocations: 83.92 kB / 0.525 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.4059, allocations: 1.511 MB / 0.5265 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.4061, allocations: 22.83 kB / 0.5265 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.4061, allocations: 6.172 kB / 0.5265 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.0001063/0.4062, allocations: 124.2 kB / 0.5267 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.4063, allocations: 13.19 kB / 0.5267 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004845/0.4068, allocations: 168.8 kB / 0.5268 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4068, allocations: 0 / 0.5268 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.4068, allocations: 0 / 0.5268 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4068, allocations: 6.484 kB / 0.5268 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007739/0.4076, allocations: 458.2 kB / 0.5273 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4076, allocations: 0 / 0.5273 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.4078, allocations: 34.5 kB / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4078, allocations: 0 / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.4078, allocations: 2.031 kB / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.4078, allocations: 4.781 kB / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4078, allocations: 1.438 kB / 0.5273 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00056/0.4084, allocations: 253.8 kB / 0.5276 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.4085, allocations: 85.31 kB / 0.5276 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.4085, allocations: 4.562 kB / 0.5276 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.4087, allocations: 30.23 kB / 0.5277 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.4088, allocations: 5.609 kB / 0.5277 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.4088, allocations: 1.984 kB / 0.5277 GB, free: 12.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.757e-05/0.4089, allocations: 118.4 kB / 0.5278 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4089, allocations: 0 / 0.5278 GB, free: 12.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.4091, allocations: 30.78 kB / 0.5278 GB, free: 12.79 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.0001062/0.4093, allocations: 98.83 kB / 0.5279 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008231/0.4101, allocations: 178 kB / 0.5281 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4101, allocations: 128 / 0.5281 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.4103, allocations: 67.64 kB / 0.5281 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.4106, allocations: 9.5 kB / 0.5282 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.4118, allocations: 381 kB / 0.5285 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.4121, allocations: 0.6994 MB / 0.5292 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.726e-05/0.4122, allocations: 15.64 kB / 0.5292 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.4122, allocations: 17.02 kB / 0.5292 GB, free: 11.62 MB / 398.1 MB Notification: Performance of SimCode: time 1.914e-06/0.4123, allocations: 0 / 0.5292 GB, free: 11.62 MB / 398.1 MB Notification: Performance of Templates: time 0.004688/0.4169, allocations: 1.719 MB / 0.5309 GB, free: 10.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins/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