Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.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.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.6 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007472/0.0007471, allocations: 95.73 kB / 296.8 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002543, allocations: 11.98 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2125, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.002167/0.2147, allocations: 2.462 MB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.2156, allocations: 0.6623 MB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2157, allocations: 15.88 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.2159, allocations: 39.62 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.216, allocations: 68.12 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.2162, allocations: 80.92 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.2164, allocations: 355.7 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.2167, allocations: 141.3 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.2168, allocations: 123.6 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.217, allocations: 127.4 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.885e-05/0.217, allocations: 16 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.711e-05/0.217, allocations: 20 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.532e-05/0.2171, allocations: 55.77 kB / 412.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2172, allocations: 161 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.2174, allocations: 284.1 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2174, allocations: 4 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2174, allocations: 0 / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2174, allocations: 0 / 412.6 MB, free: 23.11 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006661/0.2181, allocations: 0.5654 MB / 413.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2181, allocations: 15.97 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.994e-05/0.2182, allocations: 32.56 kB / 413.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.2184, allocations: 263.7 kB / 413.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2185, allocations: 21.03 kB / 413.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.2185, allocations: 36.38 kB / 413.6 MB, free: 22.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.219, allocations: 290.4 kB / 413.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.219, allocations: 0 / 413.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.219, allocations: 8 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.219, allocations: 8 kB / 413.9 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003947/0.2194, allocations: 222.5 kB / 414.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.2208, allocations: 1.038 MB / 415.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.2211, allocations: 158.6 kB / 415.3 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.2213, allocations: 139.2 kB / 415.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.2214, allocations: 7.875 kB / 415.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.2214, allocations: 38.56 kB / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.633e-06/0.2214, allocations: 0 / 415.4 MB, free: 20.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000542/0.222, allocations: 237.5 kB / 415.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.222, allocations: 59.41 kB / 415.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.2222, allocations: 215.1 kB / 415.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.2222, allocations: 25.7 kB / 416 MB, free: 19.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.2223, allocations: 192 kB / 416.2 MB, free: 19.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.2224, allocations: 74.92 kB / 416.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.2224, allocations: 4 kB / 416.2 MB, free: 19.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2225, allocations: 330.8 kB / 416.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.2227, allocations: 80.45 kB / 416.6 MB, free: 18.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2229, allocations: 151.3 kB / 416.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.2232, allocations: 236.5 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2232, allocations: 0 / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004154/0.2236, allocations: 283.5 kB / 417.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2236, allocations: 8 kB / 417.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2237, allocations: 0 / 417.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.2237, allocations: 4.25 kB / 417.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.224, allocations: 79.89 kB / 417.4 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.224, allocations: 7.984 kB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/0.2241, allocations: 39.67 kB / 417.4 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2242, allocations: 8 kB / 417.4 MB, free: 18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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 9.874e-05/0.2243, allocations: 145.7 kB / 417.6 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.2243, allocations: 31.66 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.2247, allocations: 206.6 kB / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2247, allocations: 0 / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.2247, allocations: 0 / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2247, allocations: 3.984 kB / 417.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006469/0.2254, allocations: 0.6122 MB / 418.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2254, allocations: 0 / 418.4 MB, free: 16.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.2257, allocations: 67.97 kB / 418.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.2257, allocations: 0 / 418.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2257, allocations: 4 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.2257, allocations: 3.984 kB / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2257, allocations: 0 / 418.5 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.2262, allocations: 393.2 kB / 418.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.2262, allocations: 104.8 kB / 419 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.2263, allocations: 7.984 kB / 419 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.2265, allocations: 20 kB / 419 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.2265, allocations: 15.97 kB / 419 MB, free: 16.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.2265, allocations: 8 kB / 419 MB, free: 16.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.152e-05/0.2266, allocations: 148.7 kB / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2266, allocations: 0 / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003064/0.227, allocations: 75.72 kB / 419.3 MB, free: 16.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * 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 (21): * Single equations (assignments): 21 * 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.000113/0.2271, allocations: 115.2 kB / 419.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.2274, allocations: 180.2 kB / 419.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2274, allocations: 4 kB / 419.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2276, allocations: 91.83 kB / 419.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.228, allocations: 24.75 kB / 419.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2291, allocations: 1.08 MB / 420.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.2292, allocations: 0.7714 MB / 421.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.991e-05/0.2293, allocations: 19.44 kB / 421.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2293, allocations: 0 / 421.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Templates: time 0.003652/0.233, allocations: 2.917 MB / 424.4 MB, free: 10.81 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches