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.002158/0.002158, allocations: 114 kB / 17.06 MB, free: 5.973 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.002577/0.002577, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.767/2.767, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002001, allocations: 43.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7655/0.7675, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.01035/0.778, allocations: 2.787 MB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.7803, allocations: 0.6466 MB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002694/0.7806, allocations: 8 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.7809, allocations: 43.56 kB / 403.7 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003537/0.7813, allocations: 87.2 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.7818, allocations: 87.81 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.783, allocations: 378.5 kB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00041/0.7835, allocations: 118.9 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.7838, allocations: 139.5 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003298/0.7841, allocations: 167.3 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.478e-05/0.7842, allocations: 36 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.353e-05/0.7843, allocations: 36 kB / 404.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.7845, allocations: 79.73 kB / 404.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.7848, allocations: 163.2 kB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006675/0.7854, allocations: 372.4 kB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.7855, allocations: 0 / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.7855, allocations: 4 kB / 405.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.7855, allocations: 0 / 405.4 MB, free: 3.652 MB / 318.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.00198/0.7875, allocations: 0.6536 MB / 406 MB, free: 2.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.277e-05/0.7876, allocations: 8.031 kB / 406 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.976e-05/0.7877, allocations: 62.72 kB / 406.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.7878, allocations: 32.56 kB / 406.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.7885, allocations: 284.6 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.7886, allocations: 28.92 kB / 406.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.7887, allocations: 28.36 kB / 406.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.7897, allocations: 295.5 kB / 406.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.7897, allocations: 0 / 406.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.7898, allocations: 16 kB / 406.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/0.7898, allocations: 8 kB / 406.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.791, allocations: 249.5 kB / 407 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002748/0.7937, allocations: 1.085 MB / 408.1 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.7949, allocations: 206.5 kB / 408.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.7954, allocations: 100.8 kB / 408.4 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.484e-05/0.7954, allocations: 0 / 408.4 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007229/0.7962, allocations: 165.8 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.134e-06/0.7962, allocations: 0 / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.003183/0.7994, allocations: 0.5145 MB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/0.7995, allocations: 106.8 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005211/0.8001, allocations: 282.7 kB / 409.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.348e-05/0.8001, allocations: 29.7 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.8004, allocations: 203.5 kB / 409.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.091e-05/0.8005, allocations: 43.39 kB / 409.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.8007, allocations: 49.94 kB / 409.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002497/0.8009, allocations: 338.8 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004976/0.8014, allocations: 92.16 kB / 410.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006113/0.8021, allocations: 206.1 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.8031, allocations: 309.3 kB / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.8031, allocations: 0 / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001767/0.8049, allocations: 423.7 kB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.805, allocations: 33.7 kB / 411.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.805, allocations: 7.938 kB / 411.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005785/0.8056, allocations: 80.83 kB / 411.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.8059, allocations: 43.97 kB / 411.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003547/0.8095, allocations: 1.718 MB / 413 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/0.8101, allocations: 51.66 kB / 413 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/0.8101, allocations: 16 kB / 413.1 MB, free: 11.37 MB / 334.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.0002972/0.8104, allocations: 149.2 kB / 413.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.869e-05/0.8105, allocations: 27.72 kB / 413.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.303e-05/0.8106, allocations: 25.7 kB / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.8106, allocations: 0 / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.8106, allocations: 0 / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.8106, allocations: 7.984 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.8111, allocations: 301.4 kB / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.8111, allocations: 0 / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.8113, allocations: 19.97 kB / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004047/0.8117, allocations: 68.81 kB / 413.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.033e-05/0.8117, allocations: 3.984 kB / 413.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00328/0.815, allocations: 1.703 MB / 415.3 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.8151, allocations: 8.094 kB / 415.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.8165, allocations: 305.4 kB / 415.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.8168, allocations: 112.8 kB / 415.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.8168, allocations: 4 kB / 415.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.8172, allocations: 31.95 kB / 415.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.8174, allocations: 23.97 kB / 415.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.8174, allocations: 11.94 kB / 415.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003519/0.8178, allocations: 198 kB / 416 MB, free: 8.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8178, allocations: 3.938 kB / 416 MB, free: 8.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006498/0.8184, allocations: 75.84 kB / 416.1 MB, free: 8.074 MB / 334.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.00203/0.8205, allocations: 0.8566 MB / 417 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.8221, allocations: 402 kB / 417.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.8221, allocations: 0 / 417.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006495/0.8228, allocations: 234.5 kB / 417.6 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.8233, allocations: 45.61 kB / 417.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008378/0.8317, allocations: 2.991 MB / 420.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.8324, allocations: 0.7479 MB / 421.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002115/0.8326, allocations: 30.28 kB / 421.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.8328, allocations: 71.42 kB / 421.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of SimCode: time 1.923e-06/0.8329, allocations: 0 / 421.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1042/0.9371, allocations: 6.949 MB / 428.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.2/28.13, allocations: 11.94 kB / 428.4 MB, free: 11.64 MB / 350.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