Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001079/0.001079, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 70.66 kB / 307.1 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09968, allocations: 50.53 MB / 357.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.004237/0.104, allocations: 2.88 MB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.1055, allocations: 0.7518 MB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/0.1058, allocations: 4 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.106, allocations: 47.56 kB / 361.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.1062, allocations: 95.19 kB / 361.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.1065, allocations: 115.8 kB / 361.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.107, allocations: 394.5 kB / 361.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.1073, allocations: 131.2 kB / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.1076, allocations: 155.4 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.1078, allocations: 171.2 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.737e-05/0.1079, allocations: 36 kB / 362.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.88e-05/0.108, allocations: 43.94 kB / 362.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.16e-05/0.1081, allocations: 71.75 kB / 362.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.1082, allocations: 175.2 kB / 362.6 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.1087, allocations: 426.8 kB / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1087, allocations: 0 / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1087, allocations: 0 / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1087, allocations: 0 / 363 MB, free: 8.562 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.001368/0.1101, allocations: 0.6565 MB / 363.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1101, allocations: 8.031 kB / 363.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.902e-05/0.1102, allocations: 58.73 kB / 363.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.1103, allocations: 36.55 kB / 363.8 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.1107, allocations: 288.6 kB / 364.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1107, allocations: 16.94 kB / 364.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.571e-05/0.1108, allocations: 24.38 kB / 364.1 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.1115, allocations: 323.7 kB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1115, allocations: 0 / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.1116, allocations: 8 kB / 364.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.1116, allocations: 8 kB / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008354/0.1124, allocations: 274 kB / 364.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.1144, allocations: 1.177 MB / 365.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008821/0.1153, allocations: 246.5 kB / 366.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.1157, allocations: 100.8 kB / 366.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.1157, allocations: 0 / 366.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005135/0.1162, allocations: 173 kB / 366.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.1162, allocations: 0 / 366.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.002205/0.1185, allocations: 0.5925 MB / 367 MB, free: 4.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.1185, allocations: 85.09 kB / 367.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002917/0.1188, allocations: 262.6 kB / 367.3 MB, free: 3.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.1189, allocations: 25.7 kB / 367.4 MB, free: 3.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.119, allocations: 203.5 kB / 367.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.388e-05/0.1191, allocations: 43.44 kB / 367.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.1192, allocations: 45.7 kB / 367.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1193, allocations: 330.8 kB / 368 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/0.1197, allocations: 104.2 kB / 368.1 MB, free: 3.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/0.1201, allocations: 196.6 kB / 368.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007651/0.1209, allocations: 295.8 kB / 368.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1209, allocations: 0 / 368.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001258/0.1222, allocations: 450.3 kB / 369 MB, free: 2.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.1222, allocations: 40.45 kB / 369 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1223, allocations: 4 kB / 369 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.1226, allocations: 72.86 kB / 369.1 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.1229, allocations: 59.83 kB / 369.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/0.1252, allocations: 1.641 MB / 370.8 MB, free: 232 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.1255, allocations: 47.81 kB / 370.9 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.1256, allocations: 19.88 kB / 370.9 MB, free: 164 kB / 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.0001723/0.1257, allocations: 142.7 kB / 371 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1544/0.2802, allocations: 19.27 kB / 371 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.2803, allocations: 27.17 kB / 371.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.2803, allocations: 2.312 kB / 371.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2803, allocations: 0 / 371.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.2803, allocations: 1.797 kB / 371.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.2807, allocations: 307 kB / 371.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2807, allocations: 1.016 kB / 371.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.281, allocations: 36.02 kB / 371.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002872/0.2813, allocations: 59.67 kB / 371.5 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.2813, allocations: 6.312 kB / 371.5 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.2832, allocations: 1.633 MB / 373.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2832, allocations: 2.938 kB / 373.1 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.2847, allocations: 452 kB / 373.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.2847, allocations: 101.9 kB / 373.6 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/0.2848, allocations: 10.27 kB / 373.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.285, allocations: 26.97 kB / 373.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/0.2851, allocations: 18.86 kB / 373.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.2851, allocations: 3.797 kB / 373.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.2853, allocations: 189.6 kB / 373.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2853, allocations: 0 / 373.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003802/0.2857, allocations: 68.48 kB / 374 MB, free: 18.66 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.001654/0.2874, allocations: 0.9821 MB / 374.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.2884, allocations: 419.3 kB / 375.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2884, allocations: 0 / 375.3 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004409/0.2888, allocations: 214.7 kB / 375.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.2892, allocations: 45.73 kB / 375.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00757/0.2968, allocations: 3.419 MB / 379 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.297, allocations: 0.7512 MB / 379.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.2972, allocations: 26.8 kB / 379.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2973, allocations: 79.52 kB / 379.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2973, allocations: 0 / 379.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3253, allocations: 6.179 MB / 386.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.54, allocations: 10.77 kB / 386.1 MB, free: 13.69 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches