Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001947/0.001947, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 186.2 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 47.92 kB / 370.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2504, allocations: 52.19 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005099/0.2555, allocations: 3.094 MB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.2572, allocations: 0.7831 MB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.2575, allocations: 4 kB / 426.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.2577, allocations: 75.28 kB / 426.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.258, allocations: 119 kB / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2584, allocations: 143.8 kB / 426.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005605/0.2589, allocations: 498.1 kB / 427.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.2592, allocations: 123 kB / 427.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.2595, allocations: 195.3 kB / 427.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.2597, allocations: 167.2 kB / 427.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.935e-05/0.2598, allocations: 48 kB / 427.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-05/0.2599, allocations: 48 kB / 427.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.294e-05/0.26, allocations: 95.69 kB / 428 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.2601, allocations: 183.2 kB / 428.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.2608, allocations: 0.572 MB / 428.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2608, allocations: 0 / 428.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2608, allocations: 4 kB / 428.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.2608, allocations: 0 / 428.7 MB, free: 8.23 MB / 334.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.001192/0.262, allocations: 0.634 MB / 429.3 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.262, allocations: 12.03 kB / 429.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.873e-05/0.2621, allocations: 74.72 kB / 429.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.511e-05/0.2622, allocations: 44.66 kB / 429.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004824/0.2627, allocations: 258.8 kB / 429.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.2627, allocations: 29.38 kB / 429.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.2628, allocations: 31.94 kB / 429.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000787/0.2636, allocations: 0.4892 MB / 430.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.2636, allocations: 0 / 430.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.2636, allocations: 16 kB / 430.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2636, allocations: 8 kB / 430.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006332/0.2642, allocations: 295.9 kB / 430.6 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.2665, allocations: 1.291 MB / 431.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/0.2672, allocations: 226.5 kB / 432.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.2674, allocations: 96.67 kB / 432.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2674, allocations: 0 / 432.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.2675, allocations: 38.56 kB / 432.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.2675, allocations: 4 kB / 432.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002153/0.2696, allocations: 0.6004 MB / 432.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.2697, allocations: 59.34 kB / 432.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.27, allocations: 312.5 kB / 433.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.27, allocations: 33.7 kB / 433.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.2702, allocations: 236.1 kB / 433.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.915e-05/0.2703, allocations: 55.55 kB / 433.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.106e-05/0.2703, allocations: 45.7 kB / 433.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2705, allocations: 342.8 kB / 433.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.2708, allocations: 91.95 kB / 434 MB, free: 2.695 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.2711, allocations: 161.3 kB / 434.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004989/0.2716, allocations: 255.8 kB / 434.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2716, allocations: 0 / 434.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001113/0.2727, allocations: 430.9 kB / 434.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.2727, allocations: 4 kB / 434.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2727, allocations: 4 kB / 434.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004601/0.2732, allocations: 117.7 kB / 434.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.2733, allocations: 39.92 kB / 435 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004348/0.2777, allocations: 3.335 MB / 438.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.2779, allocations: 43.72 kB / 438.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.278, allocations: 12 kB / 438.4 MB, free: 14 MB / 350.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.0001789/0.2781, allocations: 151.8 kB / 438.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.2782, allocations: 35.81 kB / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.296e-05/0.2783, allocations: 30.23 kB / 438.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2783, allocations: 4 kB / 438.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2783, allocations: 0 / 438.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2783, allocations: 3.984 kB / 438.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.2787, allocations: 292.5 kB / 438.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2787, allocations: 0 / 438.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.213e-05/0.2787, allocations: 15.98 kB / 438.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.2791, allocations: 121.5 kB / 439 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2792, allocations: 4 kB / 439 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/0.283, allocations: 3.248 MB / 442.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.283, allocations: 4.031 kB / 442.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009462/0.2839, allocations: 424.8 kB / 442.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.537e-05/0.284, allocations: 35.73 kB / 442.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.284, allocations: 4 kB / 442.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.2843, allocations: 27.98 kB / 442.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.756e-05/0.2843, allocations: 11.97 kB / 442.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.2843, allocations: 11.94 kB / 442.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.2846, allocations: 223.1 kB / 443 MB, free: 9.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2846, allocations: 3.938 kB / 443 MB, free: 9.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005149/0.2851, allocations: 103.8 kB / 443.1 MB, free: 8.969 MB / 350.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.001274/0.2864, allocations: 0.9668 MB / 444.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.2875, allocations: 0.4972 MB / 444.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.2875, allocations: 0 / 444.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004737/0.288, allocations: 341.7 kB / 444.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.2884, allocations: 40.62 kB / 444.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004912/0.2933, allocations: 3.25 MB / 448.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.2935, allocations: 173.1 kB / 448.3 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.2936, allocations: 26.97 kB / 448.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.2938, allocations: 103.4 kB / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2938, allocations: 0 / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04426/0.338, allocations: 7.751 MB / 456.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.51, allocations: 10.58 kB / 456.2 MB, free: 11.76 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vOut.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.979939355049282]