Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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.OpAmps.LCOscillator,tolerance=0.0001,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|c.v|l.i|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,tolerance=0.0001,outputFormat="mat",numberOfIntervals=1998,variableFilter="time|c.v|l.i|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009933/0.0009933, allocations: 196 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007605/0.0007605, allocations: 106.3 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002121/0.0002121, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.183, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.001781/0.1848, allocations: 2.275 MB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007303/0.1856, allocations: 0.6675 MB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1857, allocations: 4 kB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.883e-05/0.1858, allocations: 40.55 kB / 410.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.1859, allocations: 72.78 kB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.1861, allocations: 69.17 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.1863, allocations: 306.6 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.1864, allocations: 87.12 kB / 411 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.1866, allocations: 107.6 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1867, allocations: 125.5 kB / 411.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.1868, allocations: 16 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.503e-05/0.1868, allocations: 16 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.1868, allocations: 47.78 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.575e-05/0.1869, allocations: 69.58 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.187, allocations: 236.3 kB / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.187, allocations: 0 / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.187, allocations: 0 / 411.6 MB, free: 23.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1871, allocations: 0 / 411.6 MB, free: 23.69 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006812/0.1877, allocations: 0.5496 MB / 412.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.1878, allocations: 12.03 kB / 412.2 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.958e-05/0.1878, allocations: 23.72 kB / 412.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.188, allocations: 254.5 kB / 412.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.1881, allocations: 24.52 kB / 412.5 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.1881, allocations: 24 kB / 412.5 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004082/0.1885, allocations: 279.6 kB / 412.8 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.1885, allocations: 4 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.1886, allocations: 8 kB / 412.8 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1886, allocations: 8 kB / 412.8 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003743/0.189, allocations: 218.1 kB / 413 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.1902, allocations: 1.015 MB / 414 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1906, allocations: 198.5 kB / 414.2 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.1909, allocations: 158.9 kB / 414.4 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.191, allocations: 4 kB / 414.4 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.407e-05/0.191, allocations: 34.56 kB / 414.4 MB, free: 20.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.191, allocations: 0 / 414.4 MB, free: 20.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001518/0.1925, allocations: 0.6037 MB / 415 MB, free: 20.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.1925, allocations: 59.34 kB / 415.1 MB, free: 20.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.1927, allocations: 225 kB / 415.3 MB, free: 19.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.1927, allocations: 37.64 kB / 415.3 MB, free: 19.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.705e-05/0.1928, allocations: 175.8 kB / 415.5 MB, free: 19.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.1928, allocations: 63.09 kB / 415.6 MB, free: 19.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/0.1928, allocations: 8 kB / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.104e-05/0.1929, allocations: 330.8 kB / 415.9 MB, free: 19.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.193, allocations: 71.95 kB / 416 MB, free: 19.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.1932, allocations: 127 kB / 416.1 MB, free: 18.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.1934, allocations: 83.92 kB / 416.2 MB, free: 18.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1934, allocations: 4 kB / 416.2 MB, free: 18.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007234/0.1941, allocations: 368.4 kB / 416.5 MB, free: 18.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1942, allocations: 12.06 kB / 416.5 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1942, allocations: 3.938 kB / 416.6 MB, free: 18.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003183/0.1945, allocations: 80.73 kB / 416.6 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.1947, allocations: 59.91 kB / 416.7 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.1967, allocations: 1.857 MB / 418.5 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.1969, allocations: 27.75 kB / 418.6 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1969, allocations: 11.98 kB / 418.6 MB, free: 16.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 9.074e-05/0.197, allocations: 137.7 kB / 418.7 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.1971, allocations: 19.81 kB / 418.7 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.1971, allocations: 22.31 kB / 418.8 MB, free: 16.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.1971, allocations: 7.984 kB / 418.8 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.1971, allocations: 8.062 kB / 418.8 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1971, allocations: 0 / 418.8 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008992/0.1981, allocations: 0.6668 MB / 419.4 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1981, allocations: 3.953 kB / 419.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.1982, allocations: 31.98 kB / 419.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002306/0.1985, allocations: 80.8 kB / 419.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1985, allocations: 4 kB / 419.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.2001, allocations: 1.752 MB / 421.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2001, allocations: 0 / 421.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007484/0.2009, allocations: 482.3 kB / 421.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.2009, allocations: 93.02 kB / 421.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.201, allocations: 7.953 kB / 421.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.2011, allocations: 32.05 kB / 421.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.586e-05/0.2012, allocations: 15.97 kB / 421.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.2012, allocations: 4 kB / 421.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.2013, allocations: 164.5 kB / 422.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2013, allocations: 4 kB / 422.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003426/0.2017, allocations: 71.84 kB / 422.2 MB, free: 12.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (c.v,l.i) * 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 (13): * Single equations (assignments): 12 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001137/0.2018, allocations: 103.8 kB / 422.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007791/0.2026, allocations: 382.5 kB / 422.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2026, allocations: 7.938 kB / 422.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.2028, allocations: 210.5 kB / 422.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.2032, allocations: 39.2 kB / 422.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.2052, allocations: 1.06 MB / 424 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.2053, allocations: 0.7557 MB / 424.7 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.385e-05/0.2054, allocations: 19.44 kB / 424.7 MB, free: 9.816 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2054, allocations: 0 / 424.7 MB, free: 9.816 MB / 298.7 MB Notification: Performance of Templates: time 0.003895/0.2093, allocations: 3.698 MB / 428.4 MB, free: 6.125 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/LCOscillator/LCOscillator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,c.v,l.i,opAmp.out.v,opAmp.out.i Variables in the result:A,C,L,R,R1,R2,VAmp,c.C,c.i,c.n.i,c.n.v,c.p.i,c.p.v,c.v,der(c.v),der(l.i),f,gamma,ground.p.i,ground.p.v,l.L,l.i,l.n.i,l.n.v,l.p.i,l.p.v,l.v,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,r.LossPower,r.R,r.R_actual,r.T,r.T_heatPort,r.T_ref,r.alpha,r.i,r.n.i,r.n.v,r.p.i,r.p.v,r.v,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.v,time,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v