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.001035/0.001035, allocations: 201.2 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.6 MB / 243.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000747/0.0007469, allocations: 99.55 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1856/0.1856, allocations: 44.84 MB / 392 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 4 kB / 464.7 MB, free: 49.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.0921, allocations: 62.96 MB / 0.5153 GB, free: 2.805 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.001753/0.09388, allocations: 1.576 MB / 0.5169 GB, free: 1.211 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007578/0.09466, allocations: 0.542 MB / 0.5174 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.991e-05/0.09472, allocations: 0 / 0.5174 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.757e-05/0.09475, allocations: 7.922 kB / 0.5174 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.09494, allocations: 27.77 kB / 0.5174 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.09516, allocations: 66.17 kB / 0.5175 GB, free: 0.5664 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.09532, allocations: 147.4 kB / 0.5176 GB, free: 432 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.09543, allocations: 25.08 kB / 0.5177 GB, free: 408 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.09561, allocations: 75.69 kB / 0.5177 GB, free: 332 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.427e-05/0.0957, allocations: 51.77 kB / 0.5178 GB, free: 280 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.008e-05/0.09573, allocations: 8 kB / 0.5178 GB, free: 272 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.733e-05/0.09579, allocations: 8 kB / 0.5178 GB, free: 264 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.09582, allocations: 27.89 kB / 0.5178 GB, free: 236 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.09587, allocations: 45.64 kB / 0.5179 GB, free: 184 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.096, allocations: 108 kB / 0.518 GB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.09601, allocations: 0 / 0.518 GB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09601, allocations: 0 / 0.518 GB, free: 76 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.09602, allocations: 3.938 kB / 0.518 GB, free: 72 kB / 346.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.1786/0.2746, allocations: 429.9 kB / 0.5184 GB, free: 11.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2747, allocations: 9.625 kB / 0.5184 GB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000289/0.275, allocations: 46.52 kB / 0.5184 GB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.2751, allocations: 191.4 kB / 0.5186 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.2751, allocations: 4.969 kB / 0.5186 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.2751, allocations: 7.719 kB / 0.5186 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.2755, allocations: 136.4 kB / 0.5188 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2755, allocations: 1.406 kB / 0.5188 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.2755, allocations: 2.938 kB / 0.5188 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.2755, allocations: 6.047 kB / 0.5188 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.2759, allocations: 103.2 kB / 0.5189 GB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007477/0.2766, allocations: 462.8 kB / 0.5193 GB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.277, allocations: 97.55 kB / 0.5194 GB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2771, allocations: 43.67 kB / 0.5194 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.2771, allocations: 6.375 kB / 0.5194 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.2772, allocations: 36.5 kB / 0.5195 GB, free: 11.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.733e-06/0.2772, allocations: 4.812 kB / 0.5195 GB, free: 11.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.001383/0.2786, allocations: 361.4 kB / 0.5198 GB, free: 11.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.2786, allocations: 109.7 kB / 0.5199 GB, free: 10.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.796e-05/0.2787, allocations: 145.9 kB / 0.5201 GB, free: 10.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.2787, allocations: 29.33 kB / 0.5201 GB, free: 10.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.2788, allocations: 113 kB / 0.5202 GB, free: 10.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.2788, allocations: 17.14 kB / 0.5202 GB, free: 10.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.2788, allocations: 3.125 kB / 0.5202 GB, free: 10.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.982e-05/0.2788, allocations: 322.4 kB / 0.5205 GB, free: 10.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.2791, allocations: 69.94 kB / 0.5206 GB, free: 10.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.2793, allocations: 106 kB / 0.5207 GB, free: 10.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.2796, allocations: 72.05 kB / 0.5208 GB, free: 10.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2796, allocations: 3.953 kB / 0.5208 GB, free: 10.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005244/0.2801, allocations: 201.3 kB / 0.521 GB, free: 10.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.2802, allocations: 9.062 kB / 0.521 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2802, allocations: 1.688 kB / 0.521 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.2802, allocations: 1.266 kB / 0.521 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.2808, allocations: 91.92 kB / 0.5211 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.2818, allocations: 1.406 MB / 0.5224 GB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.282, allocations: 38.02 kB / 0.5225 GB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.2821, allocations: 3.766 kB / 0.5225 GB, free: 8.938 MB / 346.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 7.703e-05/0.2821, allocations: 130.1 kB / 0.5226 GB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.2822, allocations: 9.062 kB / 0.5226 GB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005081/0.2827, allocations: 186.1 kB / 0.5228 GB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2827, allocations: 0 / 0.5228 GB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.2827, allocations: 1.469 kB / 0.5228 GB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2827, allocations: 0.5625 kB / 0.5228 GB, free: 8.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007268/0.2834, allocations: 490.3 kB / 0.5233 GB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2835, allocations: 4 kB / 0.5233 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.2836, allocations: 31.5 kB / 0.5233 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2836, allocations: 0.6094 kB / 0.5233 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.2837, allocations: 9.094 kB / 0.5233 GB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.2837, allocations: 1.797 kB / 0.5233 GB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2837, allocations: 1.641 kB / 0.5233 GB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.2841, allocations: 275.7 kB / 0.5236 GB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.396e-05/0.2842, allocations: 84.34 kB / 0.5237 GB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.2842, allocations: 1.656 kB / 0.5237 GB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.2844, allocations: 31.94 kB / 0.5237 GB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.2845, allocations: 9.5 kB / 0.5237 GB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.2845, allocations: 1.672 kB / 0.5237 GB, free: 8.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.2846, allocations: 108.4 kB / 0.5238 GB, free: 8.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2846, allocations: 0 / 0.5238 GB, free: 8.078 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000237/0.2848, allocations: 34.78 kB / 0.5238 GB, free: 8.07 MB / 346.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 6.79e-05/0.2849, allocations: 93.81 kB / 0.5239 GB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.2857, allocations: 194.6 kB / 0.5241 GB, free: 7.953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2858, allocations: 4.125 kB / 0.5241 GB, free: 7.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.286, allocations: 76.27 kB / 0.5242 GB, free: 7.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.2863, allocations: 16.47 kB / 0.5242 GB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.2874, allocations: 460.4 kB / 0.5246 GB, free: 7.672 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.2876, allocations: 0.6992 MB / 0.5253 GB, free: 6.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.2876, allocations: 19.45 kB / 0.5253 GB, free: 6.965 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2876, allocations: 0 / 0.5253 GB, free: 6.965 MB / 346.7 MB Notification: Performance of Templates: time 0.003139/0.2908, allocations: 1.814 MB / 0.5271 GB, free: 6.836 MB / 346.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/jenkins/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