Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008876/0.0008876, allocations: 94.14 kB / 16.95 MB, free: 6.113 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.0007791/0.0007791, allocations: 175.3 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000451/0.0004512, allocations: 12 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1021, allocations: 47.58 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.003088/0.1052, allocations: 2.746 MB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.1071, allocations: 1.216 MB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.1073, allocations: 11.94 kB / 332.3 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.1077, allocations: 103.6 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006954/0.1084, allocations: 294.6 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.1088, allocations: 211.5 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000504/0.1093, allocations: 410.1 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1095, allocations: 123.2 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1097, allocations: 135.4 kB / 333.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.1099, allocations: 171.2 kB / 333.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.1099, allocations: 20 kB / 333.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.1102, allocations: 131.9 kB / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.1103, allocations: 63.7 kB / 334 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.1104, allocations: 89.52 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.1108, allocations: 395 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1108, allocations: 0 / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1108, allocations: 4 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1108, allocations: 0 / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001168/0.112, allocations: 0.694 MB / 335.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.112, allocations: 8.031 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005564/0.1126, allocations: 95.47 kB / 335.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.1129, allocations: 303.2 kB / 335.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.113, allocations: 32.95 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.113, allocations: 32 kB / 335.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.1136, allocations: 361.2 kB / 335.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1136, allocations: 0 / 335.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1137, allocations: 16 kB / 336 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.1137, allocations: 8 kB / 336 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.1141, allocations: 250.1 kB / 336.2 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.116, allocations: 1.331 MB / 337.5 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.1163, allocations: 197.2 kB / 337.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1165, allocations: 89.64 kB / 337.8 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007741/0.1173, allocations: 0.8752 MB / 338.7 MB, free: 9.363 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.1173, allocations: 46.59 kB / 338.7 MB, free: 9.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.1173, allocations: 3.938 kB / 338.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005243/0.1179, allocations: 229.2 kB / 339 MB, free: 9.074 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.1179, allocations: 81.11 kB / 339.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.1182, allocations: 278.9 kB / 339.3 MB, free: 8.699 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.1183, allocations: 29.7 kB / 339.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.1184, allocations: 247.5 kB / 339.6 MB, free: 8.418 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.1185, allocations: 59.11 kB / 339.7 MB, free: 8.359 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.1185, allocations: 4 kB / 339.7 MB, free: 8.355 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1186, allocations: 342.8 kB / 340 MB, free: 8.012 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.1188, allocations: 72.61 kB / 340.1 MB, free: 7.938 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.119, allocations: 206.3 kB / 340.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.1192, allocations: 103.9 kB / 340.4 MB, free: 7.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1192, allocations: 3.938 kB / 340.4 MB, free: 7.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004972/0.1197, allocations: 317.2 kB / 340.7 MB, free: 7.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1198, allocations: 8 kB / 340.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.1198, allocations: 4 kB / 340.7 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1198, allocations: 8 kB / 340.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.1201, allocations: 83.83 kB / 340.8 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.1201, allocations: 8 kB / 340.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.1203, allocations: 51.72 kB / 340.8 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.1203, allocations: 16 kB / 340.9 MB, free: 7.078 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (39): * Single equations (assignments): 39 * 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 prepare postOptimizeDAE: time 0.0001418/0.1205, allocations: 149.7 kB / 341 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.1205, allocations: 23.72 kB / 341 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.1206, allocations: 33.73 kB / 341.1 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1206, allocations: 4 kB / 341.1 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1206, allocations: 0 / 341.1 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1206, allocations: 4 kB / 341.1 MB, free: 6.855 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006535/0.1213, allocations: 0.5185 MB / 341.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1213, allocations: 0 / 341.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002039/0.1215, allocations: 39.98 kB / 341.6 MB, free: 6.238 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1215, allocations: 3.984 kB / 341.6 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.1215, allocations: 12.03 kB / 341.6 MB, free: 6.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1216, allocations: 0 / 341.6 MB, free: 6.223 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1216, allocations: 3.953 kB / 341.6 MB, free: 6.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.1221, allocations: 427.5 kB / 342.1 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.1221, allocations: 108.7 kB / 342.2 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.1222, allocations: 11.98 kB / 342.2 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.1224, allocations: 16 kB / 342.2 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.1224, allocations: 16 kB / 342.2 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1225, allocations: 7.984 kB / 342.2 MB, free: 5.605 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.1226, allocations: 198 kB / 342.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1227, allocations: 0 / 342.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004261/0.1231, allocations: 75.84 kB / 342.5 MB, free: 5.34 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * 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 (17): * Single equations (assignments): 17 * 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 0.0001626/0.1233, allocations: 111.2 kB / 342.6 MB, free: 5.223 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.1237, allocations: 199.5 kB / 342.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1237, allocations: 4.375 kB / 342.8 MB, free: 5.027 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1238, allocations: 75.84 kB / 342.9 MB, free: 4.953 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.1243, allocations: 36.81 kB / 342.9 MB, free: 4.918 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.1255, allocations: 0.8059 MB / 343.7 MB, free: 4.082 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.1258, allocations: 0.7718 MB / 344.5 MB, free: 3.285 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.1259, allocations: 30.97 kB / 344.5 MB, free: 3.254 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.126, allocations: 23.44 kB / 344.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.126, allocations: 0 / 344.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of Templates: time 0.005319/0.1313, allocations: 2.121 MB / 346.7 MB, free: 1.113 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches