Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 104.1 kB / 16.92 MB, free: 5.789 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 191.5 kB / 17.85 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 39.19 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1289, allocations: 49.45 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004832/0.1338, allocations: 2.779 MB / 352.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1352, allocations: 0.6427 MB / 353.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.1355, allocations: 4 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002478/0.1358, allocations: 47.5 kB / 353.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.1362, allocations: 83.25 kB / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.1367, allocations: 99.75 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006257/0.1373, allocations: 374.4 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.1376, allocations: 122.9 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002995/0.1379, allocations: 143.4 kB / 354.4 MB, free: 8 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000315/0.1382, allocations: 167.3 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.922e-05/0.1383, allocations: 35.98 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.822e-05/0.1384, allocations: 36 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.1385, allocations: 75.69 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.1387, allocations: 159.3 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.1391, allocations: 371 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1391, allocations: 0 / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1391, allocations: 4 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1392, allocations: 0 / 355.3 MB, free: 15.18 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.001447/0.1406, allocations: 0.6561 MB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1407, allocations: 12.03 kB / 355.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.953e-05/0.1408, allocations: 66.66 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.1409, allocations: 32.56 kB / 356 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.1413, allocations: 268.6 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.1413, allocations: 20.94 kB / 356.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.1414, allocations: 24.38 kB / 356.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.1422, allocations: 307.5 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1422, allocations: 3.938 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.1422, allocations: 11.94 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1422, allocations: 8 kB / 356.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.1431, allocations: 245.6 kB / 356.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.1448, allocations: 1.093 MB / 358 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008004/0.1456, allocations: 222.5 kB / 358.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/0.1459, allocations: 84.8 kB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.1459, allocations: 7.984 kB / 358.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005204/0.1465, allocations: 169.7 kB / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.1465, allocations: 0 / 358.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002154/0.1486, allocations: 0.5145 MB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1487, allocations: 106.8 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.149, allocations: 286.5 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.1491, allocations: 29.7 kB / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.1493, allocations: 195.6 kB / 359.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.1493, allocations: 47.34 kB / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.089e-05/0.1494, allocations: 49.84 kB / 359.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1495, allocations: 338.8 kB / 360 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.1499, allocations: 96.16 kB / 360.1 MB, free: 10 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.1503, allocations: 206.5 kB / 360.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007012/0.151, allocations: 308.2 kB / 360.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.151, allocations: 0 / 360.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001189/0.1522, allocations: 419.6 kB / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.1523, allocations: 44.44 kB / 361.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.1523, allocations: 11.94 kB / 361.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003354/0.1526, allocations: 64.81 kB / 361.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.1529, allocations: 55.89 kB / 361.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.1554, allocations: 1.699 MB / 362.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.1558, allocations: 59.89 kB / 363 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.1558, allocations: 16 kB / 363 MB, free: 6.887 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.0001563/0.156, allocations: 149.7 kB / 363.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.156, allocations: 19.72 kB / 363.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.1561, allocations: 29.7 kB / 363.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1561, allocations: 0 / 363.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1561, allocations: 7.938 kB / 363.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1561, allocations: 4 kB / 363.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.1564, allocations: 305.3 kB / 363.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1564, allocations: 0 / 363.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.1565, allocations: 15.98 kB / 363.5 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/0.1568, allocations: 72.8 kB / 363.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1568, allocations: 0 / 363.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/0.1591, allocations: 1.7 MB / 365.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.1591, allocations: 7.984 kB / 365.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.1602, allocations: 309.4 kB / 365.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.1603, allocations: 112.8 kB / 365.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.1604, allocations: 8 kB / 365.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.1606, allocations: 23.97 kB / 365.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.785e-05/0.1607, allocations: 23.97 kB / 365.7 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.1608, allocations: 7.938 kB / 365.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.161, allocations: 205.9 kB / 365.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.161, allocations: 0 / 365.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.1613, allocations: 79.84 kB / 366 MB, free: 3.598 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.001341/0.1627, allocations: 0.8476 MB / 366.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009744/0.1637, allocations: 410.5 kB / 367.3 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1637, allocations: 4.062 kB / 367.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004572/0.1642, allocations: 226.6 kB / 367.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.1645, allocations: 32.88 kB / 367.5 MB, free: 2.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1569/0.3214, allocations: 3.02 MB / 370.5 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.3216, allocations: 0.7522 MB / 371.3 MB, free: 23.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.3218, allocations: 27.2 kB / 371.3 MB, free: 23.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.3219, allocations: 81.5 kB / 371.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.893e-06/0.3219, allocations: 0 / 371.4 MB, free: 23.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/0.3636, allocations: 6.677 MB / 378.1 MB, free: 22.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.39, allocations: 9.484 kB / 378.1 MB, free: 22.64 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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