Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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) 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_4.0.0_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_4.0.0_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.001349/0.001349, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001587/0.001587, allocations: 194.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 43.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2532, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004161/0.2574, allocations: 3.281 MB / 404 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.2595, allocations: 1.296 MB / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.2597, allocations: 11.94 kB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004097/0.2602, allocations: 143.1 kB / 405.4 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000945/0.2611, allocations: 461.5 kB / 405.9 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.2615, allocations: 171.3 kB / 406.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004831/0.2619, allocations: 450.1 kB / 406.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.2622, allocations: 140.2 kB / 406.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.2623, allocations: 167.4 kB / 406.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.2626, allocations: 207.1 kB / 407 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.813e-05/0.2627, allocations: 36 kB / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002827/0.263, allocations: 155.9 kB / 407.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.305e-05/0.263, allocations: 83.69 kB / 407.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2632, allocations: 195 kB / 407.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006468/0.2639, allocations: 0.5329 MB / 408 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2639, allocations: 0 / 408 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2639, allocations: 0 / 408 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.2639, allocations: 0 / 408 MB, free: 1.559 MB / 318.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.00128/0.2652, allocations: 0.7558 MB / 408.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.2652, allocations: 8.031 kB / 408.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.2658, allocations: 108.6 kB / 408.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.2662, allocations: 308.7 kB / 409.2 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2662, allocations: 25.38 kB / 409.2 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/0.2663, allocations: 36.38 kB / 409.2 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.2669, allocations: 353.6 kB / 409.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2669, allocations: 4 kB / 409.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.2669, allocations: 12 kB / 409.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.267, allocations: 15.98 kB / 409.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.2674, allocations: 246.1 kB / 409.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.2692, allocations: 1.308 MB / 411.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.2696, allocations: 196.5 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.2698, allocations: 85.69 kB / 411.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007223/0.2705, allocations: 0.8792 MB / 412.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.2705, allocations: 34.55 kB / 412.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.333e-06/0.2706, allocations: 4 kB / 412.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000516/0.2711, allocations: 221.3 kB / 412.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2711, allocations: 88.98 kB / 412.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/0.2714, allocations: 283 kB / 412.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.2714, allocations: 33.7 kB / 413 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.2716, allocations: 236 kB / 413.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.782e-05/0.2716, allocations: 71.42 kB / 413.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.2717, allocations: 69.97 kB / 413.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2718, allocations: 334.8 kB / 413.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.272, allocations: 64.62 kB / 413.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2722, allocations: 206.3 kB / 413.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.2726, allocations: 288.9 kB / 414.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2726, allocations: 4 kB / 414.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005001/0.2731, allocations: 309.5 kB / 414.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2731, allocations: 8 kB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2731, allocations: 7.984 kB / 414.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.2731, allocations: 8 kB / 414.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.2734, allocations: 79.84 kB / 414.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.2734, allocations: 15.92 kB / 414.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.2736, allocations: 35.73 kB / 414.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.2737, allocations: 16.12 kB / 414.7 MB, free: 10.34 MB / 334.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.0001243/0.2738, allocations: 157.7 kB / 414.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.39e-05/0.2739, allocations: 27.81 kB / 414.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.303e-05/0.2739, allocations: 33.73 kB / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2739, allocations: 3.938 kB / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2739, allocations: 0 / 414.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.274, allocations: 7.969 kB / 414.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.2746, allocations: 0.5111 MB / 415.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2746, allocations: 3.938 kB / 415.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.2748, allocations: 51.84 kB / 415.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2748, allocations: 0 / 415.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/0.2749, allocations: 8 kB / 415.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2749, allocations: 0 / 415.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2749, allocations: 3.938 kB / 415.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005062/0.2754, allocations: 419.3 kB / 415.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.421e-05/0.2755, allocations: 116.8 kB / 416 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.2755, allocations: 0 / 416 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.2757, allocations: 15.98 kB / 416 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.2758, allocations: 16.05 kB / 416 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2758, allocations: 8 kB / 416 MB, free: 8.871 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001736/0.276, allocations: 194 kB / 416.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.276, allocations: 0 / 416.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003964/0.2764, allocations: 87.78 kB / 416.3 MB, free: 8.598 MB / 334.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.0001347/0.2765, allocations: 111.2 kB / 416.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.2769, allocations: 188.7 kB / 416.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2769, allocations: 0 / 416.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.277, allocations: 72.03 kB / 416.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.2774, allocations: 34.52 kB / 416.7 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009718/0.2784, allocations: 0.65 MB / 417.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.2787, allocations: 0.7868 MB / 418.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.2788, allocations: 34.91 kB / 418.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.2789, allocations: 27.42 kB / 418.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2789, allocations: 0 / 418.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of Templates: time 0.005345/0.2843, allocations: 2.382 MB / 420.6 MB, free: 4.277 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches