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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009869/0.0009869, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 221.4 MB / 236 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 98.88 kB / 287 MB, free: 272 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2213/0.2213, allocations: 44.15 MB / 382 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.845e-05, allocations: 4.219 kB / 451.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 61.91 MB / 0.5017 GB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4868, allocations: 88.14 MB / 0.5878 GB, free: 1.234 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.487, allocations: 76.67 kB / 0.5878 GB, free: 1.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008407/0.4954, allocations: 2.92 MB / 0.5907 GB, free: 14.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.4955, allocations: 0 / 0.5907 GB, free: 14.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.4955, allocations: 4.016 kB / 0.5907 GB, free: 14.25 MB / 410.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.0006047/0.4961, allocations: 418.2 kB / 0.5911 GB, free: 13.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4961, allocations: 12.03 kB / 0.5911 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.4962, allocations: 7.906 kB / 0.5911 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.4964, allocations: 198.8 kB / 0.5913 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.4964, allocations: 8 kB / 0.5913 GB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/0.4964, allocations: 11.89 kB / 0.5913 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.4966, allocations: 121.5 kB / 0.5914 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.4966, allocations: 0 / 0.5914 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.4967, allocations: 8 kB / 0.5915 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.4967, allocations: 0 / 0.5915 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.4968, allocations: 55.98 kB / 0.5915 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007617/0.4976, allocations: 447.5 kB / 0.5919 GB, free: 12.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.4977, allocations: 62.56 kB / 0.592 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.908e-05/0.4977, allocations: 20.8 kB / 0.592 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.4978, allocations: 96 / 0.592 GB, free: 12.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.4978, allocations: 38.58 kB / 0.5921 GB, free: 12.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.4978, allocations: 0 / 0.5921 GB, free: 12.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=6): time 0.000664/0.4985, allocations: 193.2 kB / 0.5922 GB, free: 12.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.4985, allocations: 106.8 kB / 0.5923 GB, free: 12.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.4987, allocations: 130.7 kB / 0.5925 GB, free: 12.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.4987, allocations: 33.7 kB / 0.5925 GB, free: 12.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.4988, allocations: 108.1 kB / 0.5926 GB, free: 12.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.4988, allocations: 35.62 kB / 0.5926 GB, free: 12.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.4988, allocations: 0 / 0.5926 GB, free: 12.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4989, allocations: 322.8 kB / 0.5929 GB, free: 11.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.598e-05/0.499, allocations: 28 kB / 0.593 GB, free: 11.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.068e-05/0.4991, allocations: 60.3 kB / 0.593 GB, free: 11.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.527e-05/0.4991, allocations: 39.94 kB / 0.5931 GB, free: 11.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.4991, allocations: 0 / 0.5931 GB, free: 11.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001932/0.4993, allocations: 109.5 kB / 0.5932 GB, free: 11.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.4994, allocations: 7.953 kB / 0.5932 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.4994, allocations: 4.219 kB / 0.5932 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.4994, allocations: 0 / 0.5932 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005969/0.5, allocations: 95.91 kB / 0.5933 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.5013, allocations: 1.386 MB / 0.5946 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.5015, allocations: 28 kB / 0.5946 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.5015, allocations: 8.125 kB / 0.5947 GB, free: 9.801 MB / 410.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 () * 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 9.074e-05/0.5016, allocations: 112.9 kB / 0.5948 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.715e-05/0.5017, allocations: 11.86 kB / 0.5948 GB, free: 9.672 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/0.5019, allocations: 102.3 kB / 0.5949 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.5019, allocations: 0 / 0.5949 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.5019, allocations: 192 / 0.5949 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.5019, allocations: 0 / 0.5949 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004657/0.5024, allocations: 410.2 kB / 0.5953 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.5024, allocations: 0 / 0.5953 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.5026, allocations: 35.97 kB / 0.5953 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.5026, allocations: 0 / 0.5953 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5026, allocations: 4 kB / 0.5953 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5026, allocations: 0 / 0.5953 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5026, allocations: 0 / 0.5953 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.5028, allocations: 195.4 kB / 0.5955 GB, free: 8.863 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.5029, allocations: 84.97 kB / 0.5956 GB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.5029, allocations: 4 kB / 0.5956 GB, free: 8.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.5031, allocations: 35.97 kB / 0.5956 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.5032, allocations: 7.984 kB / 0.5956 GB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-06/0.5032, allocations: 0 / 0.5956 GB, free: 8.715 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.5033, allocations: 113.7 kB / 0.5957 GB, free: 8.605 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5033, allocations: 0 / 0.5957 GB, free: 8.605 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002373/0.5035, allocations: 28 kB / 0.5958 GB, free: 8.578 MB / 410.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 () * 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 9.506e-05/0.5036, allocations: 95.25 kB / 0.5958 GB, free: 8.477 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000651/0.5043, allocations: 119.9 kB / 0.596 GB, free: 8.359 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5043, allocations: 0 / 0.596 GB, free: 8.359 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.371e-05/0.5044, allocations: 28 kB / 0.596 GB, free: 8.332 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002127/0.5046, allocations: 17.36 kB / 0.596 GB, free: 8.316 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.5057, allocations: 286 kB / 0.5963 GB, free: 8.012 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.506, allocations: 0.7004 MB / 0.597 GB, free: 7.285 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.696e-05/0.5061, allocations: 16.42 kB / 0.597 GB, free: 7.266 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/0.5061, allocations: 11.44 kB / 0.597 GB, free: 7.258 MB / 410.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5061, allocations: 0 / 0.597 GB, free: 7.258 MB / 410.7 MB Notification: Performance of Templates: time 0.003828/0.51, allocations: 1.482 MB / 0.5984 GB, free: 5.793 MB / 410.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches