Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, 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.001436/0.001436, 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.335/1.335, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 64.11 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09733, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.005446/0.1028, allocations: 2.946 MB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1043, allocations: 0.7673 MB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003009/0.1046, allocations: 4 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.1049, allocations: 51.5 kB / 361.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003974/0.1053, allocations: 99.19 kB / 361.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.1057, allocations: 123.8 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006612/0.1064, allocations: 410.4 kB / 362 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.1066, allocations: 135.2 kB / 362.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002057/0.1069, allocations: 155.4 kB / 362.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.1071, allocations: 171.3 kB / 362.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.174e-05/0.1072, allocations: 40 kB / 362.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.266e-05/0.1072, allocations: 43.94 kB / 362.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.034e-05/0.1073, allocations: 71.77 kB / 362.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1075, allocations: 179.2 kB / 362.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.1079, allocations: 446.8 kB / 363.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1079, allocations: 0 / 363.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1079, allocations: 0 / 363.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.108, allocations: 7.984 kB / 363.2 MB, free: 8.383 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.001281/0.1092, allocations: 0.6692 MB / 363.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1093, allocations: 19.91 kB / 363.9 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.859e-05/0.1094, allocations: 62.72 kB / 364 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/0.1095, allocations: 36.55 kB / 364 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.1098, allocations: 299.6 kB / 364.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1098, allocations: 16.94 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.1099, allocations: 24.38 kB / 364.3 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.1105, allocations: 335.7 kB / 364.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1106, allocations: 4 kB / 364.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.1106, allocations: 4 kB / 364.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.1106, allocations: 8 kB / 364.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00079/0.1114, allocations: 286.1 kB / 364.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001758/0.1132, allocations: 1.154 MB / 366.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.114, allocations: 254.5 kB / 366.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003231/0.1143, allocations: 100.8 kB / 366.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.1144, allocations: 11.97 kB / 366.5 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004817/0.1148, allocations: 177.9 kB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.1149, allocations: 0 / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002216/0.1171, allocations: 0.6629 MB / 367.3 MB, free: 4.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.1171, allocations: 106.8 kB / 367.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002819/0.1174, allocations: 278.6 kB / 367.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.1175, allocations: 33.69 kB / 367.7 MB, free: 3.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.1176, allocations: 195.7 kB / 367.9 MB, free: 3.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.1176, allocations: 43.58 kB / 367.9 MB, free: 3.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.641e-05/0.1177, allocations: 53.94 kB / 368 MB, free: 3.277 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1178, allocations: 338.8 kB / 368.3 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.1182, allocations: 104.3 kB / 368.4 MB, free: 2.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003942/0.1186, allocations: 204.9 kB / 368.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00069/0.1193, allocations: 314.7 kB / 368.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1193, allocations: 0 / 368.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001216/0.1205, allocations: 471.6 kB / 369.4 MB, free: 1.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.1206, allocations: 33.7 kB / 369.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1206, allocations: 4.062 kB / 369.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003386/0.1209, allocations: 80.8 kB / 369.5 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.1212, allocations: 55.91 kB / 369.6 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1871/0.3083, allocations: 1.995 MB / 371.6 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004542/0.3088, allocations: 54.73 kB / 371.6 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.3088, allocations: 10.61 kB / 371.6 MB, free: 19.17 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 (23): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001655/0.309, allocations: 153.8 kB / 371.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.268e-05/0.3091, allocations: 23.44 kB / 371.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.959e-05/0.3091, allocations: 28.94 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3091, allocations: 2.422 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3091, allocations: 4.531 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3091, allocations: 4.688 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.3095, allocations: 319 kB / 372.1 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3095, allocations: 2.328 kB / 372.1 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/0.3096, allocations: 21.52 kB / 372.2 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002956/0.3099, allocations: 84.44 kB / 372.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.31, allocations: 2.25 kB / 372.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/0.3121, allocations: 1.813 MB / 374.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3121, allocations: 0.7188 kB / 374.1 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.3134, allocations: 372.6 kB / 374.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.626e-05/0.3134, allocations: 101.8 kB / 374.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.3135, allocations: 6.641 kB / 374.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3137, allocations: 37.34 kB / 374.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.784e-05/0.3138, allocations: 17.14 kB / 374.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.3138, allocations: 3.203 kB / 374.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.3141, allocations: 202.4 kB / 374.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3141, allocations: 0 / 374.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.3145, allocations: 81.53 kB / 374.9 MB, free: 17.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/0.3158, allocations: 0.9092 MB / 375.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.3169, allocations: 446.8 kB / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.317, allocations: 0 / 376.2 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004925/0.3175, allocations: 231.5 kB / 376.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.3178, allocations: 50.84 kB / 376.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.3227, allocations: 3.131 MB / 379.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/0.3229, allocations: 0.7552 MB / 380.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.3231, allocations: 25.72 kB / 380.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3232, allocations: 82.28 kB / 380.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3232, allocations: 1.781 kB / 380.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.178/2.502, allocations: 6.766 MB / 387.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/18.84, allocations: 13.66 kB / 387.3 MB, free: 12.07 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gain.opAmp.out.v,gain.opAmp.out.i Variables in the result:Vin,f,gain.R1,gain.R2,gain.V0,gain.Vns,gain.Vps,gain.i1,gain.i2,gain.k,gain.n1.i,gain.n1.v,gain.n2.i,gain.n2.v,gain.opAmp.V0,gain.opAmp.Vns,gain.opAmp.Vps,gain.opAmp.homotopyType,gain.opAmp.i_s,gain.opAmp.in_n.i,gain.opAmp.in_n.v,gain.opAmp.in_p.i,gain.opAmp.in_p.v,gain.opAmp.out.i,gain.opAmp.out.v,gain.opAmp.p_in,gain.opAmp.p_out,gain.opAmp.p_s,gain.opAmp.strict,gain.opAmp.useSupply,gain.opAmp.v_in,gain.opAmp.v_out,gain.opAmp.vns,gain.opAmp.vps,gain.p1.i,gain.p1.v,gain.p2.i,gain.p2.v,gain.r1.LossPower,gain.r1.R,gain.r1.R_actual,gain.r1.T,gain.r1.T_heatPort,gain.r1.T_ref,gain.r1.alpha,gain.r1.i,gain.r1.n.i,gain.r1.n.v,gain.r1.p.i,gain.r1.p.v,gain.r1.useHeatPort,gain.r1.v,gain.r2.LossPower,gain.r2.R,gain.r2.R_actual,gain.r2.T,gain.r2.T_heatPort,gain.r2.T_ref,gain.r2.alpha,gain.r2.i,gain.r2.n.i,gain.r2.n.v,gain.r2.p.i,gain.r2.p.v,gain.r2.useHeatPort,gain.r2.v,gain.v1,gain.v2,ground.p.i,ground.p.v,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