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.001211/0.001211, allocations: 196.6 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.352/1.352, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007285/0.0007285, allocations: 111.5 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001998/0.0001998, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.201, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.002171/0.2033, allocations: 2.454 MB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008803/0.2042, allocations: 0.6708 MB / 410.6 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2043, allocations: 8.688 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.2045, allocations: 47.62 kB / 410.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.2046, allocations: 66.45 kB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.2048, allocations: 79.84 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.2051, allocations: 343 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.2053, allocations: 124.2 kB / 411.3 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.2055, allocations: 123.6 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.2056, allocations: 127.4 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.06e-05/0.2056, allocations: 16 kB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.937e-05/0.2057, allocations: 16 kB / 411.5 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.17e-05/0.2057, allocations: 59.75 kB / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.2058, allocations: 85.52 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.206, allocations: 272.2 kB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.206, allocations: 3.984 kB / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.206, allocations: 0 / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.206, allocations: 0 / 412 MB, free: 23.33 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.0006967/0.2067, allocations: 0.5652 MB / 412.5 MB, free: 22.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2067, allocations: 12.02 kB / 412.5 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.366e-05/0.2068, allocations: 35.62 kB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.207, allocations: 258.4 kB / 412.8 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.2071, allocations: 24.66 kB / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.2071, allocations: 32 kB / 412.9 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/0.2076, allocations: 286 kB / 413.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2076, allocations: 0 / 413.2 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.2077, allocations: 16 kB / 413.2 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2077, allocations: 11.94 kB / 413.2 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.2081, allocations: 226.4 kB / 413.4 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2093, allocations: 1.03 MB / 414.4 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.2096, allocations: 166.5 kB / 414.6 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.2098, allocations: 132.8 kB / 414.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.2098, allocations: 4.344 kB / 414.7 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.2099, allocations: 34.52 kB / 414.8 MB, free: 20.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.322e-06/0.2099, allocations: 4 kB / 414.8 MB, free: 20.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005134/0.2104, allocations: 239.5 kB / 415 MB, free: 20.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.288e-05/0.2104, allocations: 59.39 kB / 415.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.2106, allocations: 219.1 kB / 415.3 MB, free: 19.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.2106, allocations: 29.7 kB / 415.3 MB, free: 19.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.2107, allocations: 188 kB / 415.5 MB, free: 19.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.455e-05/0.2107, allocations: 74.98 kB / 415.6 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-06/0.2107, allocations: 4 kB / 415.6 MB, free: 19.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.854e-05/0.2108, allocations: 334.8 kB / 415.9 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.2109, allocations: 72.53 kB / 416 MB, free: 19.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.2111, allocations: 143.4 kB / 416.1 MB, free: 18.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.2113, allocations: 99.84 kB / 416.2 MB, free: 18.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2113, allocations: 3.938 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000405/0.2117, allocations: 275.5 kB / 416.5 MB, free: 18.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.2117, allocations: 16.14 kB / 416.5 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2117, allocations: 4 kB / 416.5 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2117, allocations: 4 kB / 416.5 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.212, allocations: 75.91 kB / 416.6 MB, free: 18.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.212, allocations: 11.97 kB / 416.6 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.2122, allocations: 31.69 kB / 416.6 MB, free: 18.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.2122, allocations: 12 kB / 416.6 MB, free: 18.39 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.123e-05/0.2123, allocations: 145.8 kB / 416.8 MB, free: 18.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.2123, allocations: 23.72 kB / 416.8 MB, free: 18.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.2127, allocations: 214.3 kB / 417 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2127, allocations: 4 kB / 417 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2127, allocations: 4 kB / 417 MB, free: 18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.2127, allocations: 4.031 kB / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006065/0.2134, allocations: 0.6121 MB / 417.6 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2134, allocations: 4.062 kB / 417.6 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.2136, allocations: 55.97 kB / 417.7 MB, free: 17.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2136, allocations: 7.891 kB / 417.7 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.2137, allocations: 12 kB / 417.7 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2137, allocations: 0 / 417.7 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2137, allocations: 0 / 417.7 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.2141, allocations: 385.3 kB / 418.1 MB, free: 16.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.2142, allocations: 104.8 kB / 418.2 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.2142, allocations: 8.062 kB / 418.2 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.2144, allocations: 19.98 kB / 418.2 MB, free: 16.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.2145, allocations: 11.92 kB / 418.2 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.2145, allocations: 11.98 kB / 418.2 MB, free: 16.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.838e-05/0.2146, allocations: 148.7 kB / 418.4 MB, free: 16.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2146, allocations: 0 / 418.4 MB, free: 16.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.2149, allocations: 87.62 kB / 418.5 MB, free: 16.44 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 9.782e-05/0.215, allocations: 103.2 kB / 418.6 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.2153, allocations: 188.2 kB / 418.7 MB, free: 16.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2153, allocations: 4 kB / 418.8 MB, free: 16.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.2155, allocations: 79.91 kB / 418.8 MB, free: 16.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.2158, allocations: 32.59 kB / 418.9 MB, free: 16.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2169, allocations: 1.083 MB / 419.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/0.217, allocations: 0.7714 MB / 420.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.2171, allocations: 23.44 kB / 420.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2171, allocations: 0 / 420.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of Templates: time 0.003541/0.2206, allocations: 2.909 MB / 423.6 MB, free: 11.2 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