Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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.VoltageFollower,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, 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.001253/0.001253, 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.372/1.372, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 68.17 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1064, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower): time 0.005036/0.1115, allocations: 2.743 MB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.1131, allocations: 0.705 MB / 361.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000284/0.1135, allocations: 4 kB / 361.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002227/0.1137, allocations: 43.58 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003017/0.114, allocations: 91.25 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.1144, allocations: 99.8 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.1149, allocations: 350.6 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1151, allocations: 76.7 kB / 361.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.1153, allocations: 135.5 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.1155, allocations: 147.4 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.994e-05/0.1156, allocations: 28 kB / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.556e-05/0.1156, allocations: 28 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.93e-05/0.1157, allocations: 67.7 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1159, allocations: 143.2 kB / 362.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.1163, allocations: 323.1 kB / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1163, allocations: 0 / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1163, allocations: 0 / 362.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1163, allocations: 3.938 kB / 362.6 MB, free: 9.008 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001372/0.1177, allocations: 0.6301 MB / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.1177, allocations: 12.03 kB / 363.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.692e-05/0.1178, allocations: 58.73 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/0.1179, allocations: 32.56 kB / 363.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.1183, allocations: 271.5 kB / 363.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1183, allocations: 12.81 kB / 363.6 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.1183, allocations: 24.36 kB / 363.6 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/0.119, allocations: 285.8 kB / 363.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.119, allocations: 0 / 363.9 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.1191, allocations: 4 kB / 363.9 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1191, allocations: 8 kB / 363.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007731/0.1199, allocations: 245.6 kB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.1214, allocations: 0.914 MB / 365 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.123, allocations: 435.4 kB / 365.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.1234, allocations: 96.78 kB / 365.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.1234, allocations: 0 / 365.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005082/0.1239, allocations: 165.8 kB / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1239, allocations: 3.938 kB / 365.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.002184/0.1261, allocations: 0.5692 MB / 366.3 MB, free: 5.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.1262, allocations: 110.8 kB / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.1265, allocations: 274.5 kB / 366.7 MB, free: 4.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1265, allocations: 33.7 kB / 366.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1267, allocations: 183.7 kB / 366.9 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.1267, allocations: 39.53 kB / 366.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.561e-05/0.1268, allocations: 45.98 kB / 367 MB, free: 4.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1269, allocations: 338.8 kB / 367.3 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/0.1273, allocations: 95.86 kB / 367.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/0.1277, allocations: 199.4 kB / 367.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007359/0.1285, allocations: 305.4 kB / 367.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1285, allocations: 0 / 367.9 MB, free: 3.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001257/0.1297, allocations: 431.8 kB / 368.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.1298, allocations: 36.67 kB / 368.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1298, allocations: 0 / 368.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.1301, allocations: 64.88 kB / 368.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.1304, allocations: 55.89 kB / 368.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.1325, allocations: 1.604 MB / 370.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.1329, allocations: 59.69 kB / 370.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.1329, allocations: 8 kB / 370.1 MB, free: 0.8516 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 (24): * Single equations (assignments): 22 * 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.0001431/0.1331, allocations: 149.7 kB / 370.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.898e-05/0.1331, allocations: 31.72 kB / 370.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.1332, allocations: 21.7 kB / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1332, allocations: 0 / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.1332, allocations: 0 / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1332, allocations: 4 kB / 370.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1563/0.2895, allocations: 0.6316 MB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.2895, allocations: 3.391 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.2897, allocations: 24.84 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/0.29, allocations: 56.25 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.29, allocations: 5.125 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.2919, allocations: 1.601 MB / 372.6 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.292, allocations: 8 kB / 372.7 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.2931, allocations: 392.1 kB / 373 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.124e-05/0.2932, allocations: 102 kB / 373.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.2932, allocations: 2.766 kB / 373.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/0.2935, allocations: 33.64 kB / 373.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.2936, allocations: 21.09 kB / 373.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.2936, allocations: 3.766 kB / 373.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000187/0.2938, allocations: 193.9 kB / 373.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2938, allocations: 1.125 kB / 373.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004135/0.2942, allocations: 56.81 kB / 373.4 MB, free: 18.59 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 (9): * Single equations (assignments): 6 * 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.001249/0.2955, allocations: 0.936 MB / 374.4 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009764/0.2965, allocations: 392.4 kB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2965, allocations: 0 / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004322/0.2969, allocations: 206.9 kB / 375 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.2973, allocations: 47.77 kB / 375 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005062/0.3024, allocations: 2.995 MB / 378 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.3026, allocations: 0.7506 MB / 378.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.3028, allocations: 30.34 kB / 378.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.3029, allocations: 73.8 kB / 378.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3029, allocations: 0 / 378.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02652/0.3294, allocations: 5.945 MB / 384.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.46, allocations: 18.5 kB / 384.8 MB, free: 14.21 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_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_VoltageFollower.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/VoltageFollower/VoltageFollower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches