Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_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.00146/0.00146, allocations: 103.8 kB / 17.58 MB, free: 5.426 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.001635/0.001635, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.345/1.345, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001258/0.001258, allocations: 63.91 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09624, allocations: 46.62 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.003746/0.1, allocations: 2.606 MB / 330 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.1012, allocations: 0.7059 MB / 330.7 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1013, allocations: 4 kB / 330.7 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1015, allocations: 39.58 kB / 330.7 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.1017, allocations: 79.33 kB / 330.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.102, allocations: 99.81 kB / 330.9 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.1024, allocations: 322.7 kB / 331.2 MB, free: 492 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1026, allocations: 80.7 kB / 331.3 MB, free: 416 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.1028, allocations: 119.5 kB / 331.4 MB, free: 296 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.103, allocations: 147.4 kB / 331.6 MB, free: 148 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.103, allocations: 28 kB / 331.6 MB, free: 120 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.613e-05/0.1031, allocations: 28 kB / 331.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.1031, allocations: 59.77 kB / 331.7 MB, free: 32 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.1033, allocations: 135.5 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.1036, allocations: 311.1 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1036, allocations: 0 / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1036, allocations: 0 / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1036, allocations: 0 / 332.1 MB, free: 15.59 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001206/0.1048, allocations: 0.6065 MB / 332.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1049, allocations: 12.03 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.1049, allocations: 54.67 kB / 332.8 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.105, allocations: 36.58 kB / 332.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.1053, allocations: 271.4 kB / 333.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.1053, allocations: 12.75 kB / 333.1 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.1054, allocations: 20.38 kB / 333.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.1059, allocations: 240.4 kB / 333.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1059, allocations: 3.984 kB / 333.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.106, allocations: 8 kB / 333.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.106, allocations: 8 kB / 333.4 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006866/0.1067, allocations: 243.6 kB / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.108, allocations: 0.8208 MB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008003/0.1088, allocations: 226.5 kB / 334.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.1091, allocations: 96.78 kB / 334.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.1091, allocations: 4 kB / 334.8 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/0.1095, allocations: 161 kB / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.743e-06/0.1095, allocations: 0 / 334.9 MB, free: 12.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001706/0.1112, allocations: 0.5341 MB / 335.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.1113, allocations: 81.05 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.1115, allocations: 240.9 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1116, allocations: 29.7 kB / 335.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1117, allocations: 175.9 kB / 336 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.921e-05/0.1117, allocations: 39.45 kB / 336 MB, free: 11.43 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.551e-05/0.1118, allocations: 45.64 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1119, allocations: 334.8 kB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.1122, allocations: 96.73 kB / 336.5 MB, free: 10.94 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.1126, allocations: 142.8 kB / 336.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005565/0.1131, allocations: 250.8 kB / 336.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1131, allocations: 4 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009528/0.1141, allocations: 379.7 kB / 337.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.1141, allocations: 33.7 kB / 337.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1142, allocations: 3.984 kB / 337.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000408/0.1146, allocations: 100.7 kB / 337.4 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.1148, allocations: 47.89 kB / 337.4 MB, free: 9.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.1163, allocations: 1.566 MB / 339 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.1166, allocations: 39.8 kB / 339 MB, free: 8.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.1166, allocations: 12 kB / 339 MB, free: 8.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003053/0.117, allocations: 176.1 kB / 339.2 MB, free: 7.992 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002714/0.1172, allocations: 134.7 kB / 339.3 MB, free: 7.836 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004619/0.1177, allocations: 219.5 kB / 339.6 MB, free: 7.594 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.1177, allocations: 0 / 339.6 MB, free: 7.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0006478/0.1184, allocations: 310.8 kB / 339.9 MB, free: 7.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.1184, allocations: 37.69 kB / 339.9 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-06/0.1184, allocations: 0 / 339.9 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.639e-05/0.1185, allocations: 29.03 kB / 339.9 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1187, allocations: 39.97 kB / 340 MB, free: 7.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000922/0.1196, allocations: 1.544 MB / 341.5 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.1199, allocations: 39.84 kB / 341.5 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.1199, allocations: 4 kB / 341.5 MB, free: 5.438 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (20): * Single equations (assignments): 18 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.1201, allocations: 196.4 kB / 341.7 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.558e-05/0.1201, allocations: 19.8 kB / 341.8 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.1202, allocations: 29.83 kB / 341.8 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1202, allocations: 0 / 341.8 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1202, allocations: 0 / 341.8 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1202, allocations: 3.938 kB / 341.8 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.1204, allocations: 293.3 kB / 342.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1204, allocations: 3.938 kB / 342.1 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.1207, allocations: 35.97 kB / 342.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/0.1208, allocations: 40.81 kB / 342.2 MB, free: 4.773 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1209, allocations: 8 kB / 342.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001464/0.1223, allocations: 1.546 MB / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1223, allocations: 0 / 343.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1234, allocations: 406.1 kB / 344.1 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/0.1235, allocations: 104.9 kB / 344.2 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.1235, allocations: 0 / 344.2 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1238, allocations: 31.91 kB / 344.2 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.503e-05/0.1238, allocations: 19.97 kB / 344.3 MB, free: 2.484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.1239, allocations: 0 / 344.3 MB, free: 2.484 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001627/0.124, allocations: 176.5 kB / 344.4 MB, free: 2.312 MB / 286.1 MB Notification: Performance of sort global known variables: time 3e-07/0.124, allocations: 0 / 344.4 MB, free: 2.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.1245, allocations: 111.8 kB / 344.5 MB, free: 2.203 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001348/0.1259, allocations: 0.9253 MB / 345.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.1273, allocations: 0.6501 MB / 346.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1273, allocations: 0 / 346.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004268/0.1278, allocations: 222.6 kB / 346.3 MB, free: 324 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.1281, allocations: 36.36 kB / 346.4 MB, free: 288 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.1332, allocations: 2.808 MB / 349.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.1336, allocations: 0.744 MB / 349.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.1338, allocations: 25.94 kB / 349.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1339, allocations: 67.42 kB / 350 MB, free: 12.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.1339, allocations: 0 / 350 MB, free: 12.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.1641, allocations: 5.944 MB / 356 MB, free: 6.477 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.41, allocations: 19.86 kB / 356 MB, free: 6.457 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches