Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_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.0008885/0.0008886, allocations: 96.31 kB / 17.3 MB, free: 6.023 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.001019/0.001019, allocations: 171.6 kB / 18.2 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 224.4 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004943, allocations: 15.98 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09887/0.09937, allocations: 47.57 MB / 329.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002571/0.102, allocations: 2.429 MB / 331.5 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.103, allocations: 0.6788 MB / 332.2 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.1031, allocations: 4 kB / 332.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.1032, allocations: 35.69 kB / 332.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.1034, allocations: 71.44 kB / 332.3 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.1036, allocations: 83.86 kB / 332.4 MB, free: 356 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.1039, allocations: 354.5 kB / 332.7 MB, free: 0 / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1041, allocations: 99.64 kB / 332.8 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.1043, allocations: 123.5 kB / 332.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.1045, allocations: 151.2 kB / 333.1 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.1045, allocations: 20 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.008e-05/0.1046, allocations: 16 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.734e-05/0.1046, allocations: 51.83 kB / 333.1 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1048, allocations: 172.9 kB / 333.3 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.1051, allocations: 350.8 kB / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1051, allocations: 3.984 kB / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1051, allocations: 0 / 333.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1051, allocations: 0 / 333.7 MB, free: 15.02 MB / 286.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.001097/0.1062, allocations: 0.6187 MB / 334.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1063, allocations: 8.031 kB / 334.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.275e-05/0.1063, allocations: 58.72 kB / 334.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.1064, allocations: 32.56 kB / 334.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1067, allocations: 272.7 kB / 334.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.1067, allocations: 20.94 kB / 334.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.1068, allocations: 24.38 kB / 334.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006438/0.1074, allocations: 315.5 kB / 335 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1074, allocations: 3.938 kB / 335 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.1075, allocations: 15.98 kB / 335 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1075, allocations: 4 kB / 335 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/0.1083, allocations: 277.5 kB / 335.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/0.1099, allocations: 1.12 MB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000768/0.1107, allocations: 230.5 kB / 336.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.111, allocations: 112.8 kB / 336.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.111, allocations: 4 kB / 336.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/0.1115, allocations: 177.9 kB / 336.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 2.565e-06/0.1115, allocations: 3.938 kB / 336.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002062/0.1136, allocations: 0.5496 MB / 337.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1136, allocations: 110.8 kB / 337.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/0.1139, allocations: 282.6 kB / 337.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.114, allocations: 29.7 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.1141, allocations: 195.5 kB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.1141, allocations: 51.47 kB / 338.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.1142, allocations: 29.7 kB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1143, allocations: 326.8 kB / 338.5 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.1147, allocations: 112.1 kB / 338.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.1151, allocations: 210.1 kB / 338.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006837/0.1158, allocations: 329 kB / 339.1 MB, free: 9.145 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1158, allocations: 0 / 339.1 MB, free: 9.145 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001178/0.117, allocations: 447.7 kB / 339.6 MB, free: 8.691 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.117, allocations: 41.78 kB / 339.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.117, allocations: 7.938 kB / 339.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.1173, allocations: 64.81 kB / 339.7 MB, free: 8.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.1176, allocations: 63.89 kB / 339.7 MB, free: 8.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.1196, allocations: 1.581 MB / 341.3 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.1199, allocations: 59.72 kB / 341.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.1199, allocations: 16 kB / 341.4 MB, free: 6.719 MB / 286.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.0001276/0.1201, allocations: 161.5 kB / 341.5 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.1201, allocations: 19.72 kB / 341.6 MB, free: 6.531 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.56e-05/0.1202, allocations: 25.89 kB / 341.6 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1202, allocations: 3.938 kB / 341.6 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1202, allocations: 8 kB / 341.6 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1202, allocations: 3.938 kB / 341.6 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.1204, allocations: 305.4 kB / 341.9 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1205, allocations: 0 / 341.9 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.1206, allocations: 19.98 kB / 341.9 MB, free: 6.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002388/0.1208, allocations: 68.8 kB / 342 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1209, allocations: 8 kB / 342 MB, free: 6.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.1227, allocations: 1.585 MB / 343.6 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1227, allocations: 0 / 343.6 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009946/0.1237, allocations: 345.8 kB / 343.9 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.489e-05/0.1238, allocations: 112.8 kB / 344 MB, free: 3.836 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.1239, allocations: 4.188 kB / 344 MB, free: 3.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.1241, allocations: 43.95 kB / 344.1 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.1242, allocations: 23.97 kB / 344.1 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1242, allocations: 0 / 344.1 MB, free: 3.766 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.1244, allocations: 202 kB / 344.3 MB, free: 3.566 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1245, allocations: 0 / 344.3 MB, free: 3.566 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003353/0.1248, allocations: 79.84 kB / 344.4 MB, free: 3.488 MB / 286.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.001378/0.1262, allocations: 0.8705 MB / 345.2 MB, free: 2.582 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009201/0.1271, allocations: 433.9 kB / 345.7 MB, free: 2.133 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1271, allocations: 4.625 kB / 345.7 MB, free: 2.129 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004318/0.1276, allocations: 234.5 kB / 345.9 MB, free: 1.887 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1279, allocations: 48.8 kB / 346 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004773/0.1326, allocations: 3.181 MB / 349.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.1329, allocations: 0.7518 MB / 349.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.133, allocations: 26.3 kB / 349.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.1331, allocations: 75.41 kB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1331, allocations: 0 / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.1512, allocations: 6.106 MB / 356.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.1514, allocations: 231 kB / 356.3 MB, free: 7.254 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/1.971, allocations: 0 / 356.3 MB, free: 7.254 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_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