Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001252, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 201.2 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2595/0.2595, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 79.86 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4032, allocations: 62.42 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003717/0.4069, allocations: 1.916 MB / 0.5328 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009919/0.4079, allocations: 0.5834 MB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.754e-05/0.408, allocations: 5.375 kB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.875e-05/0.4081, allocations: 13.23 kB / 0.5334 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.4083, allocations: 35.83 kB / 0.5335 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.4086, allocations: 83.7 kB / 0.5335 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001924/0.4088, allocations: 161.2 kB / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.409, allocations: 32.25 kB / 0.5337 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.4092, allocations: 81.88 kB / 0.5338 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.4093, allocations: 61.62 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.4094, allocations: 12.38 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.19e-05/0.4095, allocations: 20.5 kB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.4095, allocations: 30.64 kB / 0.5339 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.4096, allocations: 61.55 kB / 0.534 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.4098, allocations: 145.1 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4098, allocations: 4 kB / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4098, allocations: 0 / 0.5341 GB, free: 11.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.4098, allocations: 4 kB / 0.5341 GB, free: 11.17 MB / 398.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.000781/0.4106, allocations: 444 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4107, allocations: 9.844 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002958/0.411, allocations: 50.09 kB / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.4112, allocations: 184.9 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.4112, allocations: 8.188 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.4112, allocations: 9.094 kB / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.4116, allocations: 144.8 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.4116, allocations: 3.984 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.4116, allocations: 5.344 kB / 0.535 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.4116, allocations: 1.312 kB / 0.535 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.4119, allocations: 95.98 kB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008222/0.4128, allocations: 455 kB / 0.5355 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.4131, allocations: 94.45 kB / 0.5356 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.4132, allocations: 41.08 kB / 0.5356 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.4133, allocations: 1.156 kB / 0.5356 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.4133, allocations: 31.56 kB / 0.5356 GB, free: 9.781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.293e-06/0.4133, allocations: 4 kB / 0.5356 GB, free: 9.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001391/0.4147, allocations: 316.5 kB / 0.5359 GB, free: 9.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.4148, allocations: 105.1 kB / 0.536 GB, free: 9.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.4149, allocations: 156.4 kB / 0.5362 GB, free: 9.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.415, allocations: 29.7 kB / 0.5362 GB, free: 9.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.4151, allocations: 110.9 kB / 0.5363 GB, free: 9.207 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.4151, allocations: 25.83 kB / 0.5364 GB, free: 9.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-05/0.4152, allocations: 34.2 kB / 0.5364 GB, free: 9.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4153, allocations: 321.3 kB / 0.5367 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.4155, allocations: 55.64 kB / 0.5367 GB, free: 8.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/0.4158, allocations: 97.7 kB / 0.5368 GB, free: 8.734 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.4162, allocations: 139.3 kB / 0.537 GB, free: 8.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.4162, allocations: 0 / 0.537 GB, free: 8.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005165/0.4168, allocations: 173.4 kB / 0.5371 GB, free: 8.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4168, allocations: 9.469 kB / 0.5371 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4168, allocations: 1.031 kB / 0.5371 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.4168, allocations: 1.156 kB / 0.5371 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006643/0.4175, allocations: 91.19 kB / 0.5372 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.4192, allocations: 1.499 MB / 0.5387 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.4195, allocations: 28.53 kB / 0.5387 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.4195, allocations: 6.875 kB / 0.5387 GB, free: 6.949 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.0001647/0.4197, allocations: 125.4 kB / 0.5389 GB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/0.4197, allocations: 8.891 kB / 0.5389 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000554/0.4203, allocations: 177.6 kB / 0.539 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4203, allocations: 4.984 kB / 0.539 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.4203, allocations: 0.875 kB / 0.539 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4203, allocations: 0 / 0.539 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009458/0.4213, allocations: 463.1 kB / 0.5395 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.4213, allocations: 4 kB / 0.5395 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.4215, allocations: 35 kB / 0.5395 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.4215, allocations: 0 / 0.5395 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.4215, allocations: 1.188 kB / 0.5395 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.4215, allocations: 5.188 kB / 0.5395 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4215, allocations: 0 / 0.5395 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005681/0.4221, allocations: 250.7 kB / 0.5398 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.4222, allocations: 84.03 kB / 0.5398 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.4222, allocations: 5.375 kB / 0.5398 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.4224, allocations: 29.94 kB / 0.5399 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.4225, allocations: 6.578 kB / 0.5399 GB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.4225, allocations: 1.375 kB / 0.5399 GB, free: 5.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.4226, allocations: 117.7 kB / 0.54 GB, free: 5.863 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4226, allocations: 3.938 kB / 0.54 GB, free: 5.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.4229, allocations: 26.31 kB / 0.54 GB, free: 5.859 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.0001244/0.423, allocations: 104.5 kB / 0.5401 GB, free: 5.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009219/0.424, allocations: 170.1 kB / 0.5403 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.424, allocations: 3.938 kB / 0.5403 GB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002289/0.4242, allocations: 61.02 kB / 0.5403 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.4246, allocations: 19.23 kB / 0.5404 GB, free: 5.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.4259, allocations: 369.2 kB / 0.5407 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.4261, allocations: 0.7037 MB / 0.5414 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.197e-05/0.4262, allocations: 15.83 kB / 0.5414 GB, free: 4.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.09e-05/0.4263, allocations: 20.38 kB / 0.5414 GB, free: 4.695 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4263, allocations: 4 kB / 0.5414 GB, free: 4.691 MB / 398.1 MB Notification: Performance of Templates: time 0.00546/0.4318, allocations: 1.71 MB / 0.5431 GB, free: 3.82 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches