Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001301/0.001301, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001443/0.001443, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.47/1.47, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 47.59 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.005203/0.1107, allocations: 2.847 MB / 353 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.1123, allocations: 0.7284 MB / 353.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.1125, allocations: 4 kB / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.1127, allocations: 47.56 kB / 353.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.113, allocations: 99.19 kB / 353.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.1134, allocations: 111.8 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005038/0.1139, allocations: 390.5 kB / 354.4 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003763/0.1143, allocations: 123.3 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003163/0.1146, allocations: 155.3 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002561/0.1149, allocations: 167.3 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.115, allocations: 36 kB / 354.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.638e-05/0.1151, allocations: 44 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.197e-05/0.1152, allocations: 71.77 kB / 355 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.1154, allocations: 167.2 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.1159, allocations: 422.8 kB / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1159, allocations: 0 / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1159, allocations: 0 / 355.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.1159, allocations: 0 / 355.6 MB, free: 14.89 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001624/0.1175, allocations: 0.6642 MB / 356.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1176, allocations: 8.031 kB / 356.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.483e-05/0.1177, allocations: 62.66 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1178, allocations: 36.56 kB / 356.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.1183, allocations: 292.5 kB / 356.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.1183, allocations: 20.88 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.1184, allocations: 28.38 kB / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.1192, allocations: 319.7 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1192, allocations: 0 / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.1193, allocations: 8 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1193, allocations: 8 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008826/0.1202, allocations: 274 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.1225, allocations: 1.181 MB / 358.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.1236, allocations: 246.5 kB / 358.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003723/0.1239, allocations: 100.8 kB / 358.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.124, allocations: 3.938 kB / 358.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005999/0.1246, allocations: 169 kB / 358.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.254e-06/0.1246, allocations: 0 / 358.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002267/0.1269, allocations: 0.5926 MB / 359.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.127, allocations: 93.03 kB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.1273, allocations: 258.6 kB / 359.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.1273, allocations: 25.7 kB / 359.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.1275, allocations: 203.5 kB / 360.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.1275, allocations: 39.53 kB / 360.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.1276, allocations: 49.61 kB / 360.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1278, allocations: 330.8 kB / 360.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.1282, allocations: 104.1 kB / 360.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004828/0.1287, allocations: 197.8 kB / 360.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.1295, allocations: 295.8 kB / 361.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.1295, allocations: 4 kB / 361.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001352/0.1309, allocations: 442.8 kB / 361.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.131, allocations: 37.64 kB / 361.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.131, allocations: 7.938 kB / 361.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003472/0.1313, allocations: 64.88 kB / 361.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.1316, allocations: 59.89 kB / 361.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.1339, allocations: 1.633 MB / 363.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.1342, allocations: 55.64 kB / 363.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.1343, allocations: 15.94 kB / 363.4 MB, free: 6.488 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (25): * Single equations (assignments): 23 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1344, allocations: 141.8 kB / 363.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/0.1345, allocations: 23.66 kB / 363.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.804e-05/0.1346, allocations: 33.7 kB / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1346, allocations: 0 / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1346, allocations: 0 / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1346, allocations: 0 / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.1349, allocations: 313.4 kB / 363.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1349, allocations: 0 / 363.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.1351, allocations: 35.97 kB / 363.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002382/0.1353, allocations: 64.81 kB / 364 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1354, allocations: 0 / 364 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002043/0.1374, allocations: 1.636 MB / 365.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1374, allocations: 4 kB / 365.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.1388, allocations: 449.4 kB / 366.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.219e-05/0.1389, allocations: 101 kB / 366.2 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.139, allocations: 3.984 kB / 366.2 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.1392, allocations: 27.97 kB / 366.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.1393, allocations: 15.98 kB / 366.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1393, allocations: 7.984 kB / 366.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.1395, allocations: 190 kB / 366.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1395, allocations: 0 / 366.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.1399, allocations: 75.75 kB / 366.5 MB, free: 3.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * 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 (11): * Single equations (assignments): 8 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001757/0.1416, allocations: 0.9881 MB / 367.5 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1427, allocations: 409.9 kB / 367.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1427, allocations: 0 / 367.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004769/0.1432, allocations: 219.1 kB / 368.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.1435, allocations: 44.47 kB / 368.1 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1565/0.3001, allocations: 3.402 MB / 371.5 MB, free: 24.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3003, allocations: 0.7505 MB / 372.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.3005, allocations: 26.97 kB / 372.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3006, allocations: 78.92 kB / 372.4 MB, free: 23.77 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3006, allocations: 0 / 372.4 MB, free: 23.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.3283, allocations: 6.167 MB / 378.6 MB, free: 23.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.06, allocations: 8.906 kB / 378.6 MB, free: 23.07 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches