Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, 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.002399/0.002399, 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.487/1.487, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 69.08 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09221, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005162/0.09742, allocations: 3.378 MB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.09915, allocations: 0.8611 MB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000473/0.09965, allocations: 4 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003617/0.1001, allocations: 67.36 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004683/0.1006, allocations: 126.9 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.1011, allocations: 143.8 kB / 362.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007242/0.1018, allocations: 0.4941 MB / 362.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004457/0.1023, allocations: 177 kB / 362.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004677/0.1028, allocations: 183.4 kB / 363 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004067/0.1032, allocations: 211 kB / 363.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1033, allocations: 52 kB / 363.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1035, allocations: 52 kB / 363.3 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1036, allocations: 95.67 kB / 363.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003703/0.104, allocations: 222.9 kB / 363.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008026/0.1048, allocations: 0.5648 MB / 364.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1048, allocations: 0 / 364.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1049, allocations: 0 / 364.2 MB, free: 7.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.1049, allocations: 4 kB / 364.2 MB, free: 7.352 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001781/0.1067, allocations: 0.7019 MB / 364.9 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.1068, allocations: 8.031 kB / 364.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.1069, allocations: 70.72 kB / 365 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.1072, allocations: 56.36 kB / 365 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006083/0.1079, allocations: 324.6 kB / 365.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.1079, allocations: 29.38 kB / 365.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.352e-05/0.108, allocations: 35.94 kB / 365.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1091, allocations: 386.2 kB / 365.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1091, allocations: 0 / 365.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.1092, allocations: 19.98 kB / 365.8 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.1092, allocations: 11.94 kB / 365.8 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1103, allocations: 303.8 kB / 366.1 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.1136, allocations: 1.439 MB / 367.6 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009867/0.1146, allocations: 237.5 kB / 367.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.1149, allocations: 96.81 kB / 367.9 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.115, allocations: 4 kB / 367.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.115, allocations: 38.56 kB / 367.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.816e-06/0.115, allocations: 0 / 367.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.003304/0.1184, allocations: 0.7471 MB / 368.7 MB, free: 2.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.826e-05/0.1184, allocations: 59.28 kB / 368.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004972/0.119, allocations: 324.4 kB / 369.1 MB, free: 2.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.119, allocations: 25.7 kB / 369.1 MB, free: 2.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.1192, allocations: 227.7 kB / 369.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.626e-05/0.1193, allocations: 67.17 kB / 369.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1194, allocations: 45.7 kB / 369.4 MB, free: 1.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1196, allocations: 334.8 kB / 369.7 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.1199, allocations: 87.95 kB / 369.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.1203, allocations: 157.4 kB / 370 MB, free: 1.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006615/0.121, allocations: 259.6 kB / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.121, allocations: 0 / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00151/0.1225, allocations: 426.7 kB / 370.6 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.1226, allocations: 7.938 kB / 370.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1226, allocations: 4 kB / 370.7 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006731/0.1233, allocations: 117.7 kB / 370.8 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.1236, allocations: 43.91 kB / 370.8 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.242/0.3656, allocations: 3.553 MB / 374.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003903/0.366, allocations: 37.86 kB / 374.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.366, allocations: 9.172 kB / 374.4 MB, free: 17.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.3662, allocations: 161 kB / 374.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.627e-05/0.3664, allocations: 26.84 kB / 374.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.458e-05/0.3664, allocations: 36.45 kB / 374.6 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3665, allocations: 2.656 kB / 374.6 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3665, allocations: 1.281 kB / 374.6 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3665, allocations: 0.6094 kB / 374.6 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.3671, allocations: 372 kB / 375 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.3671, allocations: 0 / 375 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.3672, allocations: 23.08 kB / 375 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005463/0.3678, allocations: 116.2 kB / 375.1 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.3678, allocations: 5.953 kB / 375.1 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004396/0.3722, allocations: 3.459 MB / 378.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3722, allocations: 3.938 kB / 378.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.3736, allocations: 438.9 kB / 379 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.3737, allocations: 106.8 kB / 379.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.3738, allocations: 5.766 kB / 379.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003828/0.3742, allocations: 22.08 kB / 379.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.289e-05/0.3743, allocations: 24.89 kB / 379.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.3743, allocations: 3.656 kB / 379.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003975/0.3747, allocations: 226.3 kB / 379.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3748, allocations: 0 / 379.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000936/0.3757, allocations: 101.3 kB / 379.5 MB, free: 13.34 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001598/0.3773, allocations: 0.9681 MB / 380.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.3789, allocations: 0.5071 MB / 381 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3789, allocations: 1.375 kB / 381 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005684/0.3795, allocations: 347.5 kB / 381.3 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.3803, allocations: 55.5 kB / 381.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007101/0.3874, allocations: 3.265 MB / 384.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.3878, allocations: 0.7861 MB / 385.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002081/0.388, allocations: 27.75 kB / 385.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.3882, allocations: 102.9 kB / 385.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3882, allocations: 3.719 kB / 385.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03946/0.4277, allocations: 7.01 MB / 392.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.8, allocations: 9.984 kB / 392.6 MB, free: 7.219 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_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_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches