Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001238/0.001238, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.4 MB / 246.3 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 66.09 kB / 306.4 MB, free: 0.6758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 50.53 MB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.004213/0.1185, allocations: 2.925 MB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.1199, allocations: 0.7363 MB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1202, allocations: 7.938 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.1204, allocations: 35.75 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.1206, allocations: 87.36 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.1208, allocations: 91.94 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.1212, allocations: 366.5 kB / 361.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1214, allocations: 115.8 kB / 361.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002505/0.1217, allocations: 147.3 kB / 361.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.1219, allocations: 147.3 kB / 361.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.364e-05/0.1219, allocations: 24 kB / 361.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.208e-05/0.122, allocations: 20 kB / 361.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.1221, allocations: 59.7 kB / 361.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1222, allocations: 151.2 kB / 361.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.1226, allocations: 406.9 kB / 362.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1226, allocations: 0 / 362.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1226, allocations: 0 / 362.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1226, allocations: 4 kB / 362.2 MB, free: 8.824 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001238/0.1238, allocations: 0.6626 MB / 362.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1239, allocations: 16.03 kB / 362.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.374e-05/0.124, allocations: 54.73 kB / 362.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.245e-05/0.124, allocations: 36.56 kB / 363 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.1244, allocations: 292.5 kB / 363.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.1244, allocations: 24.92 kB / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.1245, allocations: 24.38 kB / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006976/0.1252, allocations: 319.7 kB / 363.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1252, allocations: 0 / 363.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/0.1252, allocations: 12 kB / 363.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1253, allocations: 4 kB / 363.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007681/0.126, allocations: 274.1 kB / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.1281, allocations: 1.177 MB / 365.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008505/0.1289, allocations: 242.5 kB / 365.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003375/0.1293, allocations: 108.8 kB / 365.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.1293, allocations: 0 / 365.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005505/0.1299, allocations: 169 kB / 365.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.1299, allocations: 0 / 365.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001995/0.1319, allocations: 0.5965 MB / 366.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.132, allocations: 81.11 kB / 366.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.1322, allocations: 262.6 kB / 366.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.1323, allocations: 29.7 kB / 366.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.1325, allocations: 203.4 kB / 366.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.1325, allocations: 39.45 kB / 366.8 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.1326, allocations: 53.7 kB / 366.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1328, allocations: 326.8 kB / 367.1 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/0.1331, allocations: 104.1 kB / 367.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.1335, allocations: 192.6 kB / 367.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007269/0.1343, allocations: 303.8 kB / 367.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.1343, allocations: 4 kB / 367.7 MB, free: 2.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001184/0.1355, allocations: 446 kB / 368.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.1355, allocations: 41.7 kB / 368.2 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.1356, allocations: 4 kB / 368.2 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.1359, allocations: 60.81 kB / 368.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.1362, allocations: 59.89 kB / 368.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.1383, allocations: 1.515 MB / 369.8 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1386, allocations: 59.73 kB / 369.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.1387, allocations: 12 kB / 369.9 MB, free: 0.5352 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.1388, allocations: 145.7 kB / 370.1 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.1389, allocations: 19.72 kB / 370.1 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.1389, allocations: 33.69 kB / 370.1 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.139, allocations: 4 kB / 370.1 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.139, allocations: 0 / 370.1 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.139, allocations: 0 / 370.1 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1584/0.2974, allocations: 312 kB / 370.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.2975, allocations: 0.75 kB / 370.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.2978, allocations: 33.88 kB / 370.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002959/0.2981, allocations: 60.56 kB / 370.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.2981, allocations: 4.125 kB / 370.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.2998, allocations: 1.51 MB / 372 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2998, allocations: 3.75 kB / 372 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.3013, allocations: 449.3 kB / 372.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.215e-05/0.3013, allocations: 102.7 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.3014, allocations: 2.234 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.3016, allocations: 34.36 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.815e-05/0.3017, allocations: 17.12 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.3017, allocations: 3.484 kB / 372.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000193/0.3019, allocations: 191.5 kB / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.302, allocations: 0 / 372.8 MB, free: 18.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003745/0.3023, allocations: 70.86 kB / 372.9 MB, free: 18.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001517/0.3039, allocations: 0.9832 MB / 373.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008944/0.3048, allocations: 408.2 kB / 374.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3048, allocations: 0 / 374.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003999/0.3052, allocations: 219 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.3055, allocations: 43.67 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006795/0.3123, allocations: 3.512 MB / 378 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.3125, allocations: 0.7496 MB / 378.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001356/0.3127, allocations: 27.86 kB / 378.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3128, allocations: 74.27 kB / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3128, allocations: 0 / 378.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02014/0.3329, allocations: 5.751 MB / 384.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/0.3331, allocations: 239.9 kB / 384.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.197, allocations: 0 / 384.9 MB, free: 13.86 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.c.v,integrator.opAmp.out.v,integrator.opAmp.out.i Variables in the result:Vin,der(integrator.c.v),f,ground.p.i,ground.p.v,integrator.C,integrator.R,integrator.V0,integrator.Vns,integrator.Vps,integrator.c.C,integrator.c.i,integrator.c.n.i,integrator.c.n.v,integrator.c.p.i,integrator.c.p.v,integrator.c.v,integrator.f,integrator.i1,integrator.i2,integrator.k,integrator.n1.i,integrator.n1.v,integrator.n2.i,integrator.n2.v,integrator.opAmp.V0,integrator.opAmp.Vns,integrator.opAmp.Vps,integrator.opAmp.homotopyType,integrator.opAmp.i_s,integrator.opAmp.in_n.i,integrator.opAmp.in_n.v,integrator.opAmp.in_p.i,integrator.opAmp.in_p.v,integrator.opAmp.out.i,integrator.opAmp.out.v,integrator.opAmp.p_in,integrator.opAmp.p_out,integrator.opAmp.p_s,integrator.opAmp.strict,integrator.opAmp.useSupply,integrator.opAmp.v_in,integrator.opAmp.v_out,integrator.opAmp.vns,integrator.opAmp.vps,integrator.p1.i,integrator.p1.v,integrator.p2.i,integrator.p2.v,integrator.r.LossPower,integrator.r.R,integrator.r.R_actual,integrator.r.T,integrator.r.T_heatPort,integrator.r.T_ref,integrator.r.alpha,integrator.r.i,integrator.r.n.i,integrator.r.n.v,integrator.r.p.i,integrator.r.p.v,integrator.r.useHeatPort,integrator.r.v,integrator.v,integrator.v1,integrator.v2,time,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v