Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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) 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(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|converter_m.Phi.re|inductor_e.i",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 194 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009666/0.0009664, allocations: 102.7 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002612, allocations: 11.94 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2075, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.002398/0.21, allocations: 2.792 MB / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.2114, allocations: 1.249 MB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.2116, allocations: 5.531 kB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002482/0.2119, allocations: 111.4 kB / 411.7 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005809/0.2125, allocations: 343.8 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.2127, allocations: 130.7 kB / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.213, allocations: 414.1 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2132, allocations: 121.5 kB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.2133, allocations: 150.5 kB / 412.8 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.2135, allocations: 167.2 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.2135, allocations: 23.98 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.2138, allocations: 143.8 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.538e-05/0.2138, allocations: 63.75 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.843e-05/0.2139, allocations: 89.52 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.2142, allocations: 407.8 kB / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2142, allocations: 4 kB / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2142, allocations: 0 / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.2142, allocations: 0 / 413.7 MB, free: 21.64 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.001054/0.2152, allocations: 0.6901 MB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2153, allocations: 12.02 kB / 414.4 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006703/0.216, allocations: 115.4 kB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.2163, allocations: 295.3 kB / 414.8 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.2163, allocations: 32.98 kB / 414.8 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.2163, allocations: 39.89 kB / 414.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004846/0.2168, allocations: 353.3 kB / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2168, allocations: 0 / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.2169, allocations: 16 kB / 415.2 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.2169, allocations: 11.94 kB / 415.2 MB, free: 19.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003938/0.2173, allocations: 255.6 kB / 415.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.2188, allocations: 1.327 MB / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.2192, allocations: 204.7 kB / 417 MB, free: 18.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.2193, allocations: 89.69 kB / 417.1 MB, free: 18.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005889/0.2199, allocations: 1.204 MB / 418.3 MB, free: 16.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.489e-05/0.2199, allocations: 34.56 kB / 418.3 MB, free: 16.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.2199, allocations: 0 / 418.3 MB, free: 16.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004468/0.2204, allocations: 229.2 kB / 418.5 MB, free: 16.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.2204, allocations: 81.11 kB / 418.6 MB, free: 16.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.2206, allocations: 283 kB / 418.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.2206, allocations: 29.7 kB / 418.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.2207, allocations: 243.4 kB / 419.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.2207, allocations: 63.11 kB / 419.2 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.2208, allocations: 4 kB / 419.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.248e-05/0.2208, allocations: 342.8 kB / 419.6 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.2209, allocations: 68.62 kB / 419.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.2211, allocations: 202.4 kB / 419.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.2213, allocations: 99.92 kB / 419.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2213, allocations: 4 kB / 419.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004146/0.2217, allocations: 312.9 kB / 420.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.2217, allocations: 4.562 kB / 420.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2217, allocations: 8 kB / 420.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.2218, allocations: 11.98 kB / 420.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.222, allocations: 79.91 kB / 420.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.222, allocations: 11.94 kB / 420.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.2222, allocations: 43.58 kB / 420.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2222, allocations: 16 kB / 420.4 MB, free: 14.37 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.0001049/0.2224, allocations: 157.7 kB / 420.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.451e-05/0.2224, allocations: 23.72 kB / 420.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.424e-05/0.2225, allocations: 29.73 kB / 420.6 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2225, allocations: 4 kB / 420.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2225, allocations: 0 / 420.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2225, allocations: 3.984 kB / 420.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004965/0.223, allocations: 0.5224 MB / 421.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.223, allocations: 4 kB / 421.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.2232, allocations: 47.91 kB / 421.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2232, allocations: 0 / 421.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.2232, allocations: 8 kB / 421.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2232, allocations: 0 / 421.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2233, allocations: 0 / 421.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004743/0.2237, allocations: 435.1 kB / 421.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.2238, allocations: 113 kB / 421.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.2238, allocations: 4.062 kB / 421.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.224, allocations: 23.98 kB / 421.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.2241, allocations: 19.88 kB / 421.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2241, allocations: 4 kB / 421.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001276/0.2242, allocations: 198 kB / 422 MB, free: 12.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2242, allocations: 0 / 422 MB, free: 12.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003517/0.2246, allocations: 79.78 kB / 422.1 MB, free: 12.61 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.0001304/0.2247, allocations: 115.2 kB / 422.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.2251, allocations: 199.6 kB / 422.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2251, allocations: 0 / 422.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.2252, allocations: 77.08 kB / 422.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.2256, allocations: 29.45 kB / 422.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008823/0.2265, allocations: 0.8394 MB / 423.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.2267, allocations: 0.7716 MB / 424.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.2267, allocations: 31.42 kB / 424.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2267, allocations: 0 / 424.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of Templates: time 0.003736/0.2305, allocations: 3.385 MB / 427.5 MB, free: 7.121 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches