Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 202.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007146/0.0007146, allocations: 102.9 kB / 296.8 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002343/0.0002344, allocations: 8 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.215/0.2152, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002222/0.2175, allocations: 2.462 MB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008047/0.2183, allocations: 0.6607 MB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.2185, allocations: 11.94 kB / 411.2 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.2186, allocations: 43.62 kB / 411.2 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2188, allocations: 72.39 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.219, allocations: 73.14 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002868/0.2193, allocations: 342.5 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002584/0.2195, allocations: 133 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.2198, allocations: 127.5 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2199, allocations: 123.4 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.2199, allocations: 16 kB / 412.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.802e-05/0.22, allocations: 16 kB / 412.1 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.22, allocations: 62.12 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.2201, allocations: 161 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.2203, allocations: 276.1 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2203, allocations: 4 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2203, allocations: 0 / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2204, allocations: 0 / 412.6 MB, free: 23.14 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.0006961/0.2211, allocations: 0.5654 MB / 413.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2211, allocations: 12.02 kB / 413.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.873e-05/0.2212, allocations: 40.56 kB / 413.2 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.2214, allocations: 251.7 kB / 413.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.2214, allocations: 25.03 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.2215, allocations: 36.31 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004301/0.2219, allocations: 282.4 kB / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.222, allocations: 0 / 413.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.222, allocations: 16 kB / 413.8 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.222, allocations: 12 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.2224, allocations: 210.5 kB / 414 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.2235, allocations: 0.983 MB / 415 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.2238, allocations: 174.5 kB / 415.2 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.224, allocations: 84.83 kB / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.224, allocations: 0 / 415.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.224, allocations: 34.56 kB / 415.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.052e-06/0.224, allocations: 0 / 415.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004772/0.2245, allocations: 240.1 kB / 415.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.2246, allocations: 51.41 kB / 415.6 MB, free: 19.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.2247, allocations: 210.9 kB / 415.8 MB, free: 19.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.2247, allocations: 25.7 kB / 415.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.2248, allocations: 195.9 kB / 416 MB, free: 19.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.2249, allocations: 67.11 kB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.2249, allocations: 4 kB / 416.1 MB, free: 19.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.385e-05/0.225, allocations: 334.8 kB / 416.4 MB, free: 19.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.2251, allocations: 59.97 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2253, allocations: 123 kB / 416.6 MB, free: 18.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.2255, allocations: 196.8 kB / 416.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2256, allocations: 0 / 416.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003711/0.2259, allocations: 257.1 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.226, allocations: 4 kB / 417 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.226, allocations: 4 kB / 417 MB, free: 18.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.226, allocations: 8.031 kB / 417 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.2262, allocations: 59.91 kB / 417.1 MB, free: 18.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.2263, allocations: 8.062 kB / 417.1 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.2264, allocations: 31.83 kB / 417.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.2264, allocations: 8 kB / 417.1 MB, free: 18.31 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.602e-05/0.2265, allocations: 145.7 kB / 417.3 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.2266, allocations: 23.72 kB / 417.3 MB, free: 18.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.2269, allocations: 205.6 kB / 417.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2269, allocations: 4 kB / 417.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2269, allocations: 0 / 417.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2269, allocations: 0 / 417.5 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.2272, allocations: 321.4 kB / 417.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2272, allocations: 0 / 417.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.2274, allocations: 47.97 kB / 417.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.2275, allocations: 8 kB / 417.9 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2275, allocations: 4 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2275, allocations: 3.938 kB / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2275, allocations: 0 / 417.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004685/0.228, allocations: 371 kB / 418.3 MB, free: 17.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.228, allocations: 100.8 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.2281, allocations: 4.062 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.2282, allocations: 16.11 kB / 418.4 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.2283, allocations: 19.98 kB / 418.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2283, allocations: 8 kB / 418.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.966e-05/0.2284, allocations: 148.4 kB / 418.5 MB, free: 16.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2284, allocations: 0 / 418.5 MB, free: 16.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.2287, allocations: 83.67 kB / 418.6 MB, free: 16.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0001016/0.2288, allocations: 104.2 kB / 418.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003351/0.2291, allocations: 168 kB / 418.9 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2291, allocations: 3.938 kB / 418.9 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.2293, allocations: 75.91 kB / 419 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.2296, allocations: 40.11 kB / 419 MB, free: 16.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.2307, allocations: 1.059 MB / 420.1 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.2309, allocations: 0.7598 MB / 420.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.2309, allocations: 23.44 kB / 420.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2309, allocations: 4 kB / 420.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of Templates: time 0.003525/0.2345, allocations: 2.836 MB / 423.7 MB, free: 11.61 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches