Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008431/0.0008431, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9232/0.9232, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.124e-05, allocations: 4.812 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003406/0.003428, allocations: 3.132 MB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.004927, allocations: 0.8338 MB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.005158, allocations: 12 kB / 328.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.00534, allocations: 67.3 kB / 328.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.005545, allocations: 130.9 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.005908, allocations: 155.6 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.006303, allocations: 0.5092 MB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.006496, allocations: 121.3 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003633/0.00686, allocations: 299.2 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.007033, allocations: 147.6 kB / 330 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.007088, allocations: 48 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.144e-05/0.007169, allocations: 55.98 kB / 330.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.651e-05/0.007226, allocations: 95.61 kB / 330.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.007338, allocations: 155.7 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004773/0.007816, allocations: 0.5803 MB / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.007819, allocations: 0 / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.00782, allocations: 0 / 330.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.00783, allocations: 0 / 330.9 MB, free: 9.543 MB / 298.7 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.0008167/0.008647, allocations: 0.6367 MB / 331.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.008682, allocations: 12.03 kB / 331.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.724e-05/0.008739, allocations: 74.72 kB / 331.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.008879, allocations: 56.64 kB / 331.7 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.00921, allocations: 265.9 kB / 332 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.009228, allocations: 25.38 kB / 332 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.00926, allocations: 36.38 kB / 332 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.009752, allocations: 497.3 kB / 332.5 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.009764, allocations: 0 / 332.5 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.00979, allocations: 16 kB / 332.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.009798, allocations: 8 kB / 332.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.0103, allocations: 299.8 kB / 332.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.01175, allocations: 1.296 MB / 334.1 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.01217, allocations: 230.7 kB / 334.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.0123, allocations: 88.81 kB / 334.4 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.01232, allocations: 4 kB / 334.4 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.01234, allocations: 30.56 kB / 334.5 MB, free: 5.797 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.182e-06/0.01235, allocations: 4 kB / 334.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001612/0.01396, allocations: 0.6032 MB / 335.1 MB, free: 5.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.014, allocations: 55.41 kB / 335.1 MB, free: 5.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.01425, allocations: 320.5 kB / 335.4 MB, free: 4.789 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.01427, allocations: 25.7 kB / 335.5 MB, free: 4.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.01438, allocations: 240.1 kB / 335.7 MB, free: 4.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.01441, allocations: 51.59 kB / 335.8 MB, free: 4.469 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-05/0.01447, allocations: 49.66 kB / 335.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.376e-05/0.01456, allocations: 342.8 kB / 336.1 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.01469, allocations: 83.95 kB / 336.2 MB, free: 3.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.01483, allocations: 161.4 kB / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.01511, allocations: 245.2 kB / 336.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.01512, allocations: 0 / 336.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005443/0.01566, allocations: 430.9 kB / 337 MB, free: 3.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.01567, allocations: 11.94 kB / 337 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.01568, allocations: 0 / 337 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.01598, allocations: 121.7 kB / 337.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.712e-05/0.01606, allocations: 39.91 kB / 337.2 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00233/0.01839, allocations: 3.338 MB / 340.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.0185, allocations: 39.73 kB / 340.6 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.01851, allocations: 11.98 kB / 340.6 MB, free: 15.29 MB / 314.7 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.0001114/0.01862, allocations: 153.8 kB / 340.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.01865, allocations: 23.86 kB / 340.8 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.01869, allocations: 34.31 kB / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.01869, allocations: 3.938 kB / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.01869, allocations: 4 kB / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.01869, allocations: 0 / 340.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.01894, allocations: 300.4 kB / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.01894, allocations: 0 / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.813e-05/0.01898, allocations: 15.92 kB / 341.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.01919, allocations: 113.6 kB / 341.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.0192, allocations: 4.125 kB / 341.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002407/0.0216, allocations: 3.252 MB / 344.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.02161, allocations: 0 / 344.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004647/0.02207, allocations: 416.9 kB / 344.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.368e-05/0.0221, allocations: 43.67 kB / 344.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.02212, allocations: 4 kB / 344.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.02222, allocations: 36.09 kB / 345 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.02226, allocations: 15.97 kB / 345 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.02227, allocations: 8 kB / 345 MB, free: 10.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001414/0.02241, allocations: 219.1 kB / 345.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.02241, allocations: 0 / 345.2 MB, free: 10.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002976/0.02271, allocations: 103.8 kB / 345.3 MB, free: 10.27 MB / 314.7 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.0006548/0.02336, allocations: 0.9635 MB / 346.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006847/0.02405, allocations: 0.5067 MB / 346.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02405, allocations: 0 / 346.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.02429, allocations: 341.7 kB / 347.1 MB, free: 8.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.0246, allocations: 36.64 kB / 347.2 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.02814, allocations: 3.255 MB / 350.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.02827, allocations: 173.1 kB / 350.6 MB, free: 4.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.549e-05/0.02835, allocations: 30.95 kB / 350.6 MB, free: 4.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.02845, allocations: 100.5 kB / 350.7 MB, free: 4.602 MB / 314.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02845, allocations: 4 kB / 350.7 MB, free: 4.598 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.05251, allocations: 7.937 MB / 358.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.018, allocations: 3.5 kB / 358.6 MB, free: 12.86 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv. Warning: Get data of variable vOut.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.835779362358153]