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.001392/0.001392, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 226.6 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008441/0.000844, allocations: 95.19 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3013/0.3013, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003086, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2847, allocations: 62.95 MB / 0.5159 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.001604/0.2863, allocations: 1.585 MB / 0.5174 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006784/0.287, allocations: 0.5375 MB / 0.5179 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-05/0.2871, allocations: 0 / 0.5179 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.739e-05/0.2871, allocations: 17.2 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2873, allocations: 37.94 kB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002071/0.2875, allocations: 67.88 kB / 0.5181 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.2876, allocations: 135.5 kB / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.2878, allocations: 36.98 kB / 0.5182 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.2879, allocations: 67.34 kB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.88e-05/0.288, allocations: 62.72 kB / 0.5183 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.2881, allocations: 9.719 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.654e-05/0.2881, allocations: 8.844 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.28e-05/0.2881, allocations: 24.88 kB / 0.5184 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.5e-05/0.2882, allocations: 77.25 kB / 0.5185 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.2883, allocations: 107.1 kB / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2883, allocations: 0 / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2883, allocations: 0 / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.2883, allocations: 0 / 0.5186 GB, free: 35.28 MB / 378.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.0006141/0.289, allocations: 432.2 kB / 0.519 GB, free: 34.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.289, allocations: 10.16 kB / 0.519 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002753/0.2893, allocations: 45.5 kB / 0.519 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.2894, allocations: 188.5 kB / 0.5192 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.2894, allocations: 6.719 kB / 0.5192 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.2895, allocations: 5.875 kB / 0.5192 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2898, allocations: 158.7 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2898, allocations: 0 / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.2898, allocations: 0 / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.2898, allocations: 3.406 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.2901, allocations: 104.4 kB / 0.5195 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006867/0.2908, allocations: 456.8 kB / 0.5199 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.2911, allocations: 105 kB / 0.52 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.2913, allocations: 41.52 kB / 0.5201 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.2913, allocations: 2.938 kB / 0.5201 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.527e-05/0.2913, allocations: 42.55 kB / 0.5201 GB, free: 34.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2913, allocations: 0 / 0.5201 GB, free: 34.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.001263/0.2926, allocations: 369.8 kB / 0.5204 GB, free: 33.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.2926, allocations: 102.8 kB / 0.5205 GB, free: 33.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.183e-05/0.2927, allocations: 147.2 kB / 0.5207 GB, free: 33.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.2927, allocations: 25.7 kB / 0.5207 GB, free: 33.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.2928, allocations: 117 kB / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.2928, allocations: 21.81 kB / 0.5208 GB, free: 33.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2928, allocations: 0 / 0.5208 GB, free: 33.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.2929, allocations: 325.1 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.2931, allocations: 68.16 kB / 0.5212 GB, free: 33.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.2933, allocations: 105.2 kB / 0.5213 GB, free: 33.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.2937, allocations: 165.6 kB / 0.5215 GB, free: 33.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.2937, allocations: 0 / 0.5215 GB, free: 33.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004694/0.2942, allocations: 199.1 kB / 0.5217 GB, free: 33.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2942, allocations: 13.66 kB / 0.5217 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2942, allocations: 64 / 0.5217 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.2943, allocations: 4 kB / 0.5217 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005529/0.2948, allocations: 92.27 kB / 0.5218 GB, free: 33.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.2959, allocations: 1.407 MB / 0.5231 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.2961, allocations: 36.25 kB / 0.5232 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.2961, allocations: 3.031 kB / 0.5232 GB, free: 31.6 MB / 378.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.463e-05/0.2962, allocations: 123.6 kB / 0.5233 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.2962, allocations: 6.812 kB / 0.5233 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004486/0.2967, allocations: 195 kB / 0.5235 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2967, allocations: 0 / 0.5235 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-06/0.2967, allocations: 3.328 kB / 0.5235 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2967, allocations: 0 / 0.5235 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007033/0.2974, allocations: 480.1 kB / 0.524 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2974, allocations: 2.844 kB / 0.524 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.2976, allocations: 36.28 kB / 0.524 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.2976, allocations: 0 / 0.524 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2976, allocations: 0 / 0.524 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2976, allocations: 2.938 kB / 0.524 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2976, allocations: 0 / 0.524 GB, free: 31.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004578/0.2981, allocations: 275.9 kB / 0.5243 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.796e-05/0.2981, allocations: 87.11 kB / 0.5243 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.2982, allocations: 4 kB / 0.5243 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.2984, allocations: 30.34 kB / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.2984, allocations: 8.594 kB / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.2984, allocations: 0 / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.894e-05/0.2985, allocations: 118.4 kB / 0.5245 GB, free: 30.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2985, allocations: 0 / 0.5245 GB, free: 30.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002431/0.2987, allocations: 26.31 kB / 0.5245 GB, free: 30.66 MB / 378.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 7.667e-05/0.2988, allocations: 106.1 kB / 0.5246 GB, free: 30.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007724/0.2996, allocations: 189.3 kB / 0.5248 GB, free: 30.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2996, allocations: 0 / 0.5248 GB, free: 30.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.2998, allocations: 78.3 kB / 0.5249 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.3001, allocations: 12.94 kB / 0.5249 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3012, allocations: 449.4 kB / 0.5253 GB, free: 30.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.3014, allocations: 0.6958 MB / 0.526 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.641e-05/0.3014, allocations: 16.78 kB / 0.526 GB, free: 29.57 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3014, allocations: 0 / 0.526 GB, free: 29.57 MB / 378.7 MB Notification: Performance of Templates: time 0.002663/0.3041, allocations: 1.823 MB / 0.5278 GB, free: 29.42 MB / 378.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