Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008009/0.000801, allocations: 92.44 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009458/0.0009459, allocations: 205 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 227.7 MB / 246.8 MB, free: 9.672 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000197/0.000197, allocations: 4 kB / 307.8 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0762/0.07641, allocations: 51.54 MB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002559/0.079, allocations: 2.477 MB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.08013, allocations: 0.6701 MB / 362.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.0803, allocations: 4 kB / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.08043, allocations: 39.69 kB / 362.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.08063, allocations: 75.38 kB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.08087, allocations: 71.94 kB / 362.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.08122, allocations: 358.5 kB / 363.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.08142, allocations: 103.6 kB / 363.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.0816, allocations: 119.5 kB / 363.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.08178, allocations: 151.3 kB / 363.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.08183, allocations: 23.94 kB / 363.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.176e-05/0.08188, allocations: 16 kB / 363.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.08194, allocations: 51.77 kB / 363.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.08208, allocations: 172.9 kB / 363.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.08237, allocations: 346.9 kB / 364 MB, free: 8.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.08239, allocations: 0 / 364 MB, free: 8.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.08239, allocations: 0 / 364 MB, free: 8.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.0824, allocations: 0 / 364 MB, free: 8.27 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00106/0.08347, allocations: 0.6302 MB / 364.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.08352, allocations: 8.031 kB / 364.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.385e-05/0.08358, allocations: 62.72 kB / 364.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.658e-05/0.08366, allocations: 32.66 kB / 364.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.08394, allocations: 276.5 kB / 365 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.08397, allocations: 16.94 kB / 365 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.08401, allocations: 32.38 kB / 365.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/0.08464, allocations: 311.5 kB / 365.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.08466, allocations: 4 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.0847, allocations: 15.98 kB / 365.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.08471, allocations: 4 kB / 365.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.08548, allocations: 277.5 kB / 365.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.08702, allocations: 1.105 MB / 366.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000764/0.08779, allocations: 238.5 kB / 367 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.08811, allocations: 104.8 kB / 367.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.08814, allocations: 7.984 kB / 367.1 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004286/0.08858, allocations: 177.8 kB / 367.3 MB, free: 4.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.08859, allocations: 4 kB / 367.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001979/0.09057, allocations: 0.5496 MB / 367.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.09065, allocations: 110.8 kB / 367.9 MB, free: 4.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.09092, allocations: 290.6 kB / 368.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.09095, allocations: 25.7 kB / 368.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.09106, allocations: 195.5 kB / 368.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.284e-05/0.0911, allocations: 43.39 kB / 368.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.09115, allocations: 29.7 kB / 368.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.668e-05/0.09125, allocations: 334.8 kB / 368.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.09159, allocations: 104.2 kB / 368.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003762/0.09197, allocations: 218.1 kB / 369.2 MB, free: 2.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006704/0.09265, allocations: 331.8 kB / 369.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.09266, allocations: 0 / 369.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001149/0.09382, allocations: 451.7 kB / 369.9 MB, free: 1.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.09386, allocations: 33.7 kB / 370 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.09388, allocations: 11.88 kB / 370 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.09419, allocations: 80.83 kB / 370.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.09441, allocations: 47.97 kB / 370.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.09638, allocations: 1.589 MB / 371.7 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1411/0.2374, allocations: 57.06 kB / 371.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.953e-05/0.2375, allocations: 14.08 kB / 371.8 MB, free: 18.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.2376, allocations: 146.8 kB / 371.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.128e-05/0.2377, allocations: 25.16 kB / 371.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.742e-05/0.2378, allocations: 28.11 kB / 372 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2378, allocations: 1.062 kB / 372 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2378, allocations: 1.219 kB / 372 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2378, allocations: 1.938 kB / 372 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.2381, allocations: 303.9 kB / 372.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2381, allocations: 0.625 kB / 372.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.2382, allocations: 28.48 kB / 372.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002711/0.2385, allocations: 65.67 kB / 372.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2385, allocations: 4.297 kB / 372.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.2402, allocations: 1.587 MB / 373.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2402, allocations: 0.75 kB / 373.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000988/0.2412, allocations: 334.1 kB / 374.3 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.179e-05/0.2413, allocations: 113 kB / 374.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.2413, allocations: 9.156 kB / 374.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.2416, allocations: 39.64 kB / 374.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/0.2416, allocations: 20.23 kB / 374.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.2417, allocations: 5.734 kB / 374.4 MB, free: 16.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.2418, allocations: 201.2 kB / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2418, allocations: 0 / 374.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.2422, allocations: 80.34 kB / 374.7 MB, free: 16.68 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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001146/0.2433, allocations: 0.8734 MB / 375.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008812/0.2442, allocations: 438.8 kB / 376 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2442, allocations: 3.312 kB / 376 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004111/0.2447, allocations: 237.4 kB / 376.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.245, allocations: 36.77 kB / 376.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.2494, allocations: 3.181 MB / 379.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001579/0.2496, allocations: 0.7503 MB / 380.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.2497, allocations: 26.52 kB / 380.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2499, allocations: 77.78 kB / 380.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2499, allocations: 0 / 380.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.2663, allocations: 6.087 MB / 386.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001184/0.2664, allocations: 231.8 kB / 386.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.93, allocations: 5.062 kB / 386.6 MB, free: 12.07 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,vIn.signalSource.y Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,k,opAmp.VMax.i,opAmp.VMax.v,opAmp.VMin.i,opAmp.VMin.v,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.vin,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,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,vSourceNeg.V,vSourceNeg.i,vSourceNeg.n.i,vSourceNeg.n.v,vSourceNeg.p.i,vSourceNeg.p.v,vSourceNeg.v,vSourcePos.V,vSourcePos.i,vSourcePos.n.i,vSourcePos.n.v,vSourcePos.p.i,vSourcePos.p.v,vSourcePos.v