Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 180.6 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.4 MB / 222.5 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007749/0.0007749, allocations: 82.38 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.000281, allocations: 8 kB / 327 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1897, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.002708/0.1925, allocations: 2.744 MB / 377.3 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.194, allocations: 1.233 MB / 378.5 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.1942, allocations: 7.5 kB / 378.5 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002634/0.1944, allocations: 105.7 kB / 378.6 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006468/0.1951, allocations: 289.7 kB / 378.9 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.1954, allocations: 199.8 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.1959, allocations: 416.2 kB / 379.5 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.1961, allocations: 125 kB / 379.6 MB, free: 41.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1963, allocations: 135.1 kB / 379.8 MB, free: 41.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1965, allocations: 170.8 kB / 379.9 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.1965, allocations: 18.81 kB / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002593/0.1968, allocations: 139 kB / 380.1 MB, free: 41.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.799e-05/0.1968, allocations: 59.42 kB / 380.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.724e-05/0.1969, allocations: 89.67 kB / 380.2 MB, free: 41.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003176/0.1972, allocations: 397 kB / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1972, allocations: 0 / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1972, allocations: 4.938 kB / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1973, allocations: 0 / 380.6 MB, free: 40.88 MB / 298.7 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.001105/0.1984, allocations: 0.6888 MB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1984, allocations: 9 kB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005517/0.199, allocations: 91.91 kB / 381.4 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.1993, allocations: 306.1 kB / 381.7 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.1993, allocations: 30.64 kB / 381.8 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.1993, allocations: 34.5 kB / 381.8 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.1999, allocations: 349.1 kB / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1999, allocations: 0 / 382.1 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.1999, allocations: 15.53 kB / 382.1 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.2, allocations: 8.438 kB / 382.2 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.2004, allocations: 254.8 kB / 382.4 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2021, allocations: 1.332 MB / 383.7 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.2024, allocations: 200.4 kB / 383.9 MB, free: 38.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.2026, allocations: 89.52 kB / 384 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005702/0.2031, allocations: 0.8799 MB / 384.9 MB, free: 37.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.2032, allocations: 35.94 kB / 384.9 MB, free: 37.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.2032, allocations: 4.875 kB / 384.9 MB, free: 37.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004971/0.2037, allocations: 234.8 kB / 385.2 MB, free: 37.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.2037, allocations: 79.98 kB / 385.2 MB, free: 37.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.2039, allocations: 283.1 kB / 385.5 MB, free: 36.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.204, allocations: 26.7 kB / 385.5 MB, free: 36.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.2041, allocations: 241.8 kB / 385.8 MB, free: 36.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.2041, allocations: 62.88 kB / 385.8 MB, free: 36.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.087e-05/0.2041, allocations: 5.094 kB / 385.9 MB, free: 36.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.2042, allocations: 341.1 kB / 386.2 MB, free: 36.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.2043, allocations: 71.02 kB / 386.3 MB, free: 36.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.2045, allocations: 202.9 kB / 386.5 MB, free: 36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.2047, allocations: 104.1 kB / 386.6 MB, free: 35.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2047, allocations: 1.562 kB / 386.6 MB, free: 35.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004763/0.2052, allocations: 323.8 kB / 386.9 MB, free: 35.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2052, allocations: 6.781 kB / 386.9 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.2052, allocations: 3.938 kB / 386.9 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.2052, allocations: 11.41 kB / 386.9 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.2055, allocations: 79.83 kB / 387 MB, free: 35.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.2055, allocations: 9.781 kB / 387 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.2057, allocations: 42.64 kB / 387 MB, free: 35.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.2058, allocations: 20.48 kB / 387 MB, free: 35.72 MB / 298.7 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.0001043/0.2059, allocations: 159.4 kB / 387.2 MB, free: 35.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.2059, allocations: 24.22 kB / 387.2 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.53e-05/0.206, allocations: 28.36 kB / 387.2 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.206, allocations: 3.156 kB / 387.3 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.206, allocations: 0 / 387.3 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.206, allocations: 1.125 kB / 387.3 MB, free: 35.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.2066, allocations: 0.5161 MB / 387.8 MB, free: 35.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2066, allocations: 1.75 kB / 387.8 MB, free: 35.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.2068, allocations: 51.72 kB / 387.8 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.2068, allocations: 4 kB / 387.8 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.2068, allocations: 4 kB / 387.8 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.2068, allocations: 7.984 kB / 387.8 MB, free: 35.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2068, allocations: 3.953 kB / 387.8 MB, free: 35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/0.2072, allocations: 431.2 kB / 388.3 MB, free: 34.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.2073, allocations: 96.86 kB / 388.4 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.2073, allocations: 8.062 kB / 388.4 MB, free: 34.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.2075, allocations: 15.98 kB / 388.4 MB, free: 34.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.2076, allocations: 23.88 kB / 388.4 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2076, allocations: 4 kB / 388.4 MB, free: 34.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001223/0.2077, allocations: 190 kB / 388.6 MB, free: 34.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2077, allocations: 0 / 388.6 MB, free: 34.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003508/0.2081, allocations: 91.62 kB / 388.7 MB, free: 34.12 MB / 298.7 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.0001012/0.2082, allocations: 111.2 kB / 388.8 MB, free: 34.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.2085, allocations: 191.7 kB / 389 MB, free: 33.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2085, allocations: 0 / 389 MB, free: 33.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.2086, allocations: 77.53 kB / 389.1 MB, free: 33.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.209, allocations: 32.88 kB / 389.1 MB, free: 33.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008093/0.2098, allocations: 0.8389 MB / 389.9 MB, free: 32.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.21, allocations: 0.7796 MB / 390.7 MB, free: 32.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.912e-05/0.21, allocations: 31.44 kB / 390.7 MB, free: 32 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.21, allocations: 0 / 390.7 MB, free: 32 MB / 298.7 MB Notification: Performance of Templates: time 0.003663/0.2137, allocations: 3.376 MB / 394.1 MB, free: 28.63 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches