Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002055, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002085, allocations: 67.91 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1302, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.00572/0.136, allocations: 2.696 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.138, allocations: 0.7088 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.1381, allocations: 7.938 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.1383, allocations: 55.5 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.1385, allocations: 79.27 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.1387, allocations: 99.8 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000319/0.1391, allocations: 330.6 kB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.1393, allocations: 121.6 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.1395, allocations: 123.6 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.1397, allocations: 151.3 kB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.639e-05/0.1398, allocations: 28 kB / 362 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.898e-05/0.1398, allocations: 28 kB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.281e-05/0.1399, allocations: 63.77 kB / 362.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.14, allocations: 143.3 kB / 362.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002724/0.1403, allocations: 315.1 kB / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1403, allocations: 0 / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1403, allocations: 0 / 362.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.1403, allocations: 0 / 362.5 MB, free: 9.035 MB / 302.1 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.0009154/0.1412, allocations: 0.5888 MB / 363.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1413, allocations: 8.031 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.056e-05/0.1414, allocations: 58.73 kB / 363.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.437e-05/0.1414, allocations: 32.56 kB / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.1417, allocations: 264.2 kB / 363.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1417, allocations: 20.94 kB / 363.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.421e-05/0.1418, allocations: 24.38 kB / 363.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005015/0.1423, allocations: 271.8 kB / 363.8 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1423, allocations: 4 kB / 363.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.1424, allocations: 12 kB / 363.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.1424, allocations: 4 kB / 363.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1428, allocations: 214.1 kB / 364 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1444, allocations: 1.015 MB / 365 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.1448, allocations: 189.5 kB / 365.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004176/0.1453, allocations: 156.8 kB / 365.4 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.1453, allocations: 4 kB / 365.4 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.1453, allocations: 34.56 kB / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.542e-06/0.1453, allocations: 0 / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001761/0.1471, allocations: 0.5577 MB / 365.9 MB, free: 5.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.1472, allocations: 59.39 kB / 366 MB, free: 5.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.1474, allocations: 229 kB / 366.2 MB, free: 5.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.1474, allocations: 29.7 kB / 366.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1475, allocations: 171.8 kB / 366.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.074e-05/0.1476, allocations: 67.08 kB / 366.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.1477, allocations: 49.64 kB / 366.5 MB, free: 4.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1478, allocations: 334.8 kB / 366.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.148, allocations: 71.95 kB / 366.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.1482, allocations: 130.8 kB / 367.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.1486, allocations: 210.1 kB / 367.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1486, allocations: 3.938 kB / 367.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008443/0.1494, allocations: 346 kB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1494, allocations: 8 kB / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1495, allocations: 0 / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000357/0.1498, allocations: 80.86 kB / 367.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.15, allocations: 47.92 kB / 367.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003021/0.1531, allocations: 2.009 MB / 369.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.1533, allocations: 35.67 kB / 369.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1533, allocations: 12 kB / 369.8 MB, free: 1.258 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.1535, allocations: 138.8 kB / 369.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.1535, allocations: 23.72 kB / 370 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.1536, allocations: 26.17 kB / 370 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1536, allocations: 7.938 kB / 370 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1536, allocations: 4.062 kB / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1536, allocations: 0 / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.1548, allocations: 0.6512 MB / 370.6 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1548, allocations: 4.047 kB / 370.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.1549, allocations: 35.97 kB / 370.7 MB, free: 316 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002744/0.1552, allocations: 76.73 kB / 370.8 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.1553, allocations: 8 kB / 370.8 MB, free: 228 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1616/0.3168, allocations: 1.906 MB / 372.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3169, allocations: 0 / 372.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009273/0.3178, allocations: 464.2 kB / 373.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.3179, allocations: 98.28 kB / 373.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.3179, allocations: 5.266 kB / 373.2 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.3181, allocations: 23.8 kB / 373.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.3182, allocations: 12.61 kB / 373.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.3182, allocations: 7.766 kB / 373.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.3184, allocations: 172.1 kB / 373.4 MB, free: 18.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3184, allocations: 0 / 373.4 MB, free: 18.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004728/0.3189, allocations: 73.77 kB / 373.5 MB, free: 18.28 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00115/0.32, allocations: 0.9826 MB / 374.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.321, allocations: 385.9 kB / 374.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3211, allocations: 0 / 374.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002956/0.3214, allocations: 210 kB / 375.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.3218, allocations: 40.59 kB / 375.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.3269, allocations: 3.092 MB / 378.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.3271, allocations: 0.7516 MB / 379 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.991e-05/0.3272, allocations: 28.27 kB / 379 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.494e-05/0.3273, allocations: 72.3 kB / 379.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3273, allocations: 0 / 379.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.3546, allocations: 5.3 MB / 384.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.59, allocations: 4.969 kB / 384.4 MB, free: 14.28 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator_fmu --startTime=0 --stopTime=0.01 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/LCOscillator/LCOscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.useHeatPort,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.useHeatPort,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.useHeatPort,r2.v,time,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v