Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001253, allocations: 103.7 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.001316/0.001316, allocations: 208.6 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.412/1.412, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002149, allocations: 59.47 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1084, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004089/0.1125, allocations: 2.871 MB / 360.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1139, allocations: 0.7518 MB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.1141, allocations: 4 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.1143, allocations: 47.52 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.1146, allocations: 107.2 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.1149, allocations: 111.8 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004032/0.1153, allocations: 386.6 kB / 361.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.1155, allocations: 131.2 kB / 362 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002945/0.1158, allocations: 163.4 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.116, allocations: 167.2 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.205e-05/0.1161, allocations: 36 kB / 362.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.338e-05/0.1162, allocations: 40 kB / 362.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.1163, allocations: 75.7 kB / 362.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1164, allocations: 167.2 kB / 362.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.1168, allocations: 422.8 kB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1168, allocations: 0 / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1168, allocations: 0 / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.1168, allocations: 0 / 363 MB, free: 8.551 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.001285/0.1181, allocations: 0.6575 MB / 363.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1182, allocations: 12.02 kB / 363.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.132e-05/0.1182, allocations: 62.73 kB / 363.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.091e-05/0.1183, allocations: 32.56 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1187, allocations: 292.6 kB / 364.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1187, allocations: 16.94 kB / 364.1 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.1188, allocations: 24.31 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006925/0.1195, allocations: 323.8 kB / 364.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1195, allocations: 0 / 364.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.1195, allocations: 8 kB / 364.4 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1195, allocations: 11.94 kB / 364.5 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008044/0.1203, allocations: 274.1 kB / 364.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.1221, allocations: 1.115 MB / 365.8 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.123, allocations: 250.5 kB / 366.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003371/0.1234, allocations: 104.8 kB / 366.2 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.1234, allocations: 0 / 366.2 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005154/0.1239, allocations: 165 kB / 366.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.976e-06/0.124, allocations: 4 kB / 366.4 MB, free: 5 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001147/0.1251, allocations: 317.4 kB / 366.7 MB, free: 4.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.1252, allocations: 85.09 kB / 366.7 MB, free: 4.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/0.1255, allocations: 258.6 kB / 367 MB, free: 4.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.1255, allocations: 33.7 kB / 367 MB, free: 4.285 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.1256, allocations: 195.5 kB / 367.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.1257, allocations: 39.53 kB / 367.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.161e-05/0.1258, allocations: 53.61 kB / 367.3 MB, free: 3.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1259, allocations: 334.8 kB / 367.6 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.1263, allocations: 100.2 kB / 367.7 MB, free: 3.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.1267, allocations: 196.5 kB / 367.9 MB, free: 3.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007412/0.1275, allocations: 299.8 kB / 368.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1275, allocations: 0 / 368.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009187/0.1284, allocations: 365.6 kB / 368.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.1284, allocations: 40.66 kB / 368.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1285, allocations: 4 kB / 368.6 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1285, allocations: 4 kB / 368.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.1288, allocations: 67.89 kB / 368.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.1288, allocations: 7.938 kB / 368.7 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.1291, allocations: 59.7 kB / 368.8 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.1291, allocations: 8 kB / 368.8 MB, free: 2.426 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.1293, allocations: 149.7 kB / 368.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.111e-05/0.1294, allocations: 19.72 kB / 368.9 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/0.1294, allocations: 25.7 kB / 369 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.1294, allocations: 0 / 369 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1294, allocations: 0 / 369 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1295, allocations: 3.938 kB / 369 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.1298, allocations: 309.5 kB / 369.3 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.1298, allocations: 8 kB / 369.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.13, allocations: 43.95 kB / 369.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.1301, allocations: 0 / 369.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.1301, allocations: 4 kB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1301, allocations: 4 kB / 369.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1301, allocations: 0 / 369.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.1312, allocations: 380.5 kB / 369.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.677e-05/0.1313, allocations: 104.8 kB / 369.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.1313, allocations: 4 kB / 369.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.1316, allocations: 27.97 kB / 369.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.1317, allocations: 19.92 kB / 369.8 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1317, allocations: 7.984 kB / 369.9 MB, free: 1.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.1319, allocations: 186 kB / 370 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1319, allocations: 4.062 kB / 370 MB, free: 1.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000323/0.1322, allocations: 59.84 kB / 370.1 MB, free: 0.9961 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001401/0.1336, allocations: 0.9049 MB / 371 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1519/0.2855, allocations: 298.6 kB / 371.3 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2856, allocations: 0 / 371.3 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.2859, allocations: 102 kB / 371.4 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.2863, allocations: 49.66 kB / 371.4 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.2908, allocations: 2.9 MB / 374.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.291, allocations: 0.7493 MB / 375.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.2912, allocations: 32.55 kB / 375.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2913, allocations: 78.09 kB / 375.2 MB, free: 18.22 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2913, allocations: 0.7188 kB / 375.2 MB, free: 18.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.3154, allocations: 5.451 MB / 380.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/7.752, allocations: 9.203 kB / 380.7 MB, free: 17.63 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_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_Differentiator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches