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.001383/0.001383, allocations: 112.2 kB / 17.28 MB, free: 6.219 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.001574/0.001574, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.377/1.377, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001133/0.001133, allocations: 48.3 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08219, allocations: 46.64 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004222/0.08645, allocations: 3.266 MB / 330.1 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.0885, allocations: 1.321 MB / 331.4 MB, free: 176 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.08872, allocations: 8 kB / 331.4 MB, free: 168 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004067/0.08917, allocations: 119.4 kB / 331.5 MB, free: 48 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008737/0.09005, allocations: 334.6 kB / 331.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.09053, allocations: 243.1 kB / 332.1 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005932/0.09113, allocations: 442.1 kB / 332.5 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002442/0.09138, allocations: 148.2 kB / 332.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.0916, allocations: 167.3 kB / 332.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.09186, allocations: 195.2 kB / 333 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.899e-05/0.09193, allocations: 32 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003392/0.09228, allocations: 159.9 kB / 333.2 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.09235, allocations: 83.62 kB / 333.3 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.09253, allocations: 195 kB / 333.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006064/0.09315, allocations: 0.5298 MB / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.09316, allocations: 0 / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09317, allocations: 4 kB / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.09318, allocations: 0 / 334 MB, free: 13.55 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.001371/0.09456, allocations: 0.7332 MB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.0946, allocations: 8.031 kB / 334.7 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006023/0.09521, allocations: 104.3 kB / 334.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.09563, allocations: 312.4 kB / 335.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.09567, allocations: 29.36 kB / 335.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.09573, allocations: 32.38 kB / 335.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006477/0.09639, allocations: 353.6 kB / 335.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.09641, allocations: 3.938 kB / 335.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.09646, allocations: 19.94 kB / 335.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.09648, allocations: 12 kB / 335.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.09697, allocations: 242.1 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.0991, allocations: 1.323 MB / 337.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.09952, allocations: 197.1 kB / 337.3 MB, free: 9.988 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.09969, allocations: 89.66 kB / 337.4 MB, free: 9.895 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008043/0.1005, allocations: 0.8597 MB / 338.3 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.1006, allocations: 46.5 kB / 338.3 MB, free: 8.879 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.173e-06/0.1006, allocations: 0 / 338.3 MB, free: 8.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.00054/0.1011, allocations: 217.3 kB / 338.5 MB, free: 8.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.1012, allocations: 92.98 kB / 338.6 MB, free: 8.551 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.1014, allocations: 278.9 kB / 338.9 MB, free: 8.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.1015, allocations: 29.7 kB / 338.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1016, allocations: 239.5 kB / 339.2 MB, free: 8 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.922e-05/0.1017, allocations: 67.09 kB / 339.2 MB, free: 7.934 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-05/0.1018, allocations: 62.03 kB / 339.3 MB, free: 7.867 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1019, allocations: 330.8 kB / 339.6 MB, free: 7.535 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.102, allocations: 68.61 kB / 339.7 MB, free: 7.469 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.1023, allocations: 210.4 kB / 339.9 MB, free: 7.203 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.1027, allocations: 288.8 kB / 340.2 MB, free: 6.859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.1027, allocations: 3.938 kB / 340.2 MB, free: 6.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005276/0.1033, allocations: 321.1 kB / 340.5 MB, free: 6.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1033, allocations: 8 kB / 340.5 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.1033, allocations: 4 kB / 340.5 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1033, allocations: 11.94 kB / 340.5 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.1036, allocations: 80.08 kB / 340.6 MB, free: 6.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.1036, allocations: 8 kB / 340.6 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.1038, allocations: 47.92 kB / 340.6 MB, free: 6.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.1039, allocations: 12 kB / 340.6 MB, free: 6.367 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.104, allocations: 153.7 kB / 340.8 MB, free: 6.207 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.1041, allocations: 27.72 kB / 340.8 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.621e-05/0.1042, allocations: 25.73 kB / 340.9 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1042, allocations: 7.938 kB / 340.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1042, allocations: 0 / 340.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1042, allocations: 0 / 340.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006393/0.1048, allocations: 0.5147 MB / 341.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.1048, allocations: 0 / 341.4 MB, free: 5.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.1051, allocations: 43.92 kB / 341.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1051, allocations: 0 / 341.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.1051, allocations: 15.92 kB / 341.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1051, allocations: 0 / 341.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1051, allocations: 0 / 341.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005318/0.1057, allocations: 430.2 kB / 341.9 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.36e-05/0.1057, allocations: 104.7 kB / 342 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.1058, allocations: 4 kB / 342 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.106, allocations: 16.05 kB / 342 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/0.106, allocations: 15.98 kB / 342 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.1061, allocations: 11.92 kB / 342 MB, free: 4.906 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1062, allocations: 194 kB / 342.2 MB, free: 4.715 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1063, allocations: 0 / 342.2 MB, free: 4.715 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.1067, allocations: 83.73 kB / 342.3 MB, free: 4.633 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 (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.0001473/0.1068, allocations: 103.2 kB / 342.4 MB, free: 4.523 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.1072, allocations: 200.6 kB / 342.6 MB, free: 4.328 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1073, allocations: 0 / 342.6 MB, free: 4.328 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.1074, allocations: 72.03 kB / 342.6 MB, free: 4.258 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004508/0.1079, allocations: 44.89 kB / 342.7 MB, free: 4.215 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.1091, allocations: 0.7797 MB / 343.5 MB, free: 3.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.1095, allocations: 0.7755 MB / 344.2 MB, free: 2.605 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.1096, allocations: 30.97 kB / 344.3 MB, free: 2.574 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/0.1097, allocations: 27.42 kB / 344.3 MB, free: 2.547 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1097, allocations: 0 / 344.3 MB, free: 2.547 MB / 286.1 MB Notification: Performance of Templates: time 0.005926/0.1156, allocations: 2.263 MB / 346.6 MB, free: 296 kB / 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