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.00104/0.00104, allocations: 91.8 kB / 16.65 MB, free: 6.348 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.001063/0.001063, allocations: 179.7 kB / 17.57 MB, free: 5.949 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.411/1.411, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.000276, allocations: 8 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 50.41 MB / 352 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003385/0.112, allocations: 2.452 MB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1135, allocations: 0.6389 MB / 355.1 MB, free: 252 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003009/0.1138, allocations: 11.94 kB / 355.1 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.114, allocations: 27.77 kB / 355.1 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.1143, allocations: 79.38 kB / 355.2 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1147, allocations: 79.8 kB / 355.2 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005358/0.1152, allocations: 350.6 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.1155, allocations: 107.5 kB / 355.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002501/0.1158, allocations: 127.4 kB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.116, allocations: 143.3 kB / 356 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.09e-05/0.1161, allocations: 20 kB / 356 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.1162, allocations: 20 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.59e-05/0.1163, allocations: 59.73 kB / 356.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1165, allocations: 168.9 kB / 356.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.1168, allocations: 346.9 kB / 356.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1169, allocations: 4 kB / 356.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1169, allocations: 0 / 356.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1169, allocations: 0 / 356.6 MB, free: 14.72 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.001333/0.1182, allocations: 0.6148 MB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.1183, allocations: 8.031 kB / 357.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.1184, allocations: 62.73 kB / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1185, allocations: 32.56 kB / 357.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.1189, allocations: 284.5 kB / 357.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.119, allocations: 20.94 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.119, allocations: 24.38 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007811/0.1198, allocations: 315.5 kB / 357.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1198, allocations: 0 / 357.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.1199, allocations: 8 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1199, allocations: 8 kB / 357.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008888/0.1208, allocations: 281.5 kB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.1227, allocations: 1.109 MB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008537/0.1236, allocations: 230.5 kB / 359.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/0.124, allocations: 108.8 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.124, allocations: 4 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/0.1245, allocations: 185.8 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.754e-06/0.1245, allocations: 3.938 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.00221/0.1268, allocations: 0.5418 MB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.1269, allocations: 106.8 kB / 360.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.1272, allocations: 286.6 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.1272, allocations: 29.7 kB / 360.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.1274, allocations: 199.5 kB / 361 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.177e-05/0.1274, allocations: 47.39 kB / 361 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.1275, allocations: 33.64 kB / 361.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1276, allocations: 330.8 kB / 361.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.128, allocations: 104.2 kB / 361.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.1284, allocations: 215 kB / 361.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007489/0.1292, allocations: 329.3 kB / 362 MB, free: 8.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1292, allocations: 4 kB / 362 MB, free: 8.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001257/0.1305, allocations: 451.7 kB / 362.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.1305, allocations: 29.7 kB / 362.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1306, allocations: 12.03 kB / 362.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003437/0.1309, allocations: 68.8 kB / 362.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.1311, allocations: 59.91 kB / 362.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.1334, allocations: 1.593 MB / 364.2 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.1338, allocations: 63.7 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1338, allocations: 16 kB / 364.3 MB, free: 6.398 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.0001682/0.134, allocations: 149.7 kB / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.134, allocations: 23.72 kB / 364.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.673e-05/0.1341, allocations: 21.7 kB / 364.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1341, allocations: 4 kB / 364.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1341, allocations: 0 / 364.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1341, allocations: 0 / 364.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.1344, allocations: 309.3 kB / 364.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-06/0.1344, allocations: 4 kB / 364.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.1346, allocations: 27.91 kB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.1348, allocations: 73 kB / 364.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.1348, allocations: 4 kB / 364.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002086/0.1369, allocations: 1.57 MB / 366.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.137, allocations: 0 / 366.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.138, allocations: 341.4 kB / 366.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.1382, allocations: 120.7 kB / 366.9 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.1382, allocations: 0 / 366.9 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002666/0.1385, allocations: 35.97 kB / 367 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.233e-05/0.1386, allocations: 23.97 kB / 367 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.1386, allocations: 4 kB / 367 MB, free: 3.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.1388, allocations: 198 kB / 367.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1389, allocations: 0 / 367.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.1392, allocations: 83.78 kB / 367.3 MB, free: 3.203 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.001503/0.1407, allocations: 0.8783 MB / 368.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.1418, allocations: 429.9 kB / 368.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1418, allocations: 0.625 kB / 368.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005117/0.1423, allocations: 238.5 kB / 368.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.1426, allocations: 44.81 kB / 368.8 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2092/0.3518, allocations: 3.165 MB / 372 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.3522, allocations: 0.751 MB / 372.7 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.3523, allocations: 25.41 kB / 372.8 MB, free: 22.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.3525, allocations: 74.8 kB / 372.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3525, allocations: 1.438 kB / 372.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.3745, allocations: 6.104 MB / 379 MB, free: 21.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.3747, allocations: 236.6 kB / 379.2 MB, free: 21.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.52, allocations: 1.312 kB / 379.2 MB, free: 21.41 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