Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.0007999/0.0007999, allocations: 76.08 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.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.0007993/0.0007993, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8496/0.8496, allocations: 173.3 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 318.5 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.051e-05, allocations: 2.281 kB / 318.5 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.00338/0.0034, allocations: 4.02 MB / 322.5 MB, free: 2.258 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.004753, allocations: 1.152 MB / 323.7 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.004932, allocations: 23.88 kB / 323.7 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000325/0.005257, allocations: 142.7 kB / 323.8 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.005508, allocations: 210.1 kB / 324 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.005794, allocations: 203.6 kB / 324.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.006283, allocations: 0.7899 MB / 325 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.006516, allocations: 175.1 kB / 325.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.006815, allocations: 439 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.007023, allocations: 239.2 kB / 325.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.062e-05/0.007084, allocations: 64 kB / 325.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.233e-05/0.007136, allocations: 64 kB / 326 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/0.007217, allocations: 143.4 kB / 326.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.007356, allocations: 243.3 kB / 326.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005745/0.007931, allocations: 0.767 MB / 327.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.007934, allocations: 0 / 327.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.007935, allocations: 0 / 327.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.007943, allocations: 4 kB / 327.1 MB, free: 13.62 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001039/0.008982, allocations: 0.9304 MB / 328 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.009018, allocations: 12.92 kB / 328.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.174e-05/0.00909, allocations: 102.7 kB / 328.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.009163, allocations: 76.47 kB / 328.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.009594, allocations: 351.6 kB / 328.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.009624, allocations: 37.69 kB / 328.6 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.009679, allocations: 56.38 kB / 328.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006578/0.01034, allocations: 0.7296 MB / 329.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.01035, allocations: 3.938 kB / 329.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.01039, allocations: 27.94 kB / 329.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.0104, allocations: 16 kB / 329.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005081/0.0109, allocations: 413 kB / 329.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.01274, allocations: 1.623 MB / 331.5 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.01324, allocations: 359 kB / 331.8 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.0138, allocations: 413.8 kB / 332.2 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.01383, allocations: 8.328 kB / 332.2 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003884/0.01422, allocations: 485.8 kB / 332.7 MB, free: 7.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.533e-06/0.01422, allocations: 0 / 332.7 MB, free: 7.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.001832/0.01605, allocations: 1.102 MB / 333.8 MB, free: 6.621 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/0.01613, allocations: 239.3 kB / 334 MB, free: 6.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.01645, allocations: 441.8 kB / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.01648, allocations: 33.64 kB / 334.5 MB, free: 5.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.01662, allocations: 316.8 kB / 334.8 MB, free: 5.535 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.0167, allocations: 146.7 kB / 335 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.01679, allocations: 90.14 kB / 335.1 MB, free: 5.297 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.58e-05/0.01689, allocations: 362.7 kB / 335.4 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.01708, allocations: 152.9 kB / 335.6 MB, free: 4.785 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.01739, allocations: 0.4892 MB / 336 MB, free: 4.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.01782, allocations: 439.5 kB / 336.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.01783, allocations: 0 / 336.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001109/0.01894, allocations: 0.7403 MB / 337.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.01896, allocations: 12 kB / 337.2 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.01896, allocations: 3.984 kB / 337.2 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003934/0.01936, allocations: 191.3 kB / 337.4 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.01953, allocations: 79.84 kB / 337.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/0.02206, allocations: 2.667 MB / 340.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.02232, allocations: 83.64 kB / 340.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.02234, allocations: 20 kB / 340.3 MB, free: 15.79 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.02253, allocations: 173.8 kB / 340.4 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.02258, allocations: 55.67 kB / 340.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.159e-05/0.02264, allocations: 52.88 kB / 340.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.02264, allocations: 8 kB / 340.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.02265, allocations: 0 / 340.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.02265, allocations: 7.922 kB / 340.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/0.024, allocations: 1.154 MB / 341.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.024, allocations: 0 / 341.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.02413, allocations: 51.91 kB / 341.8 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003152/0.02444, allocations: 176.7 kB / 341.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.02446, allocations: 12 kB / 341.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.02698, allocations: 2.643 MB / 344.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.02698, allocations: 3.938 kB / 344.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.02801, allocations: 0.9033 MB / 345.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.02807, allocations: 51.67 kB / 345.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.0281, allocations: 8 kB / 345.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.02826, allocations: 44.03 kB / 345.6 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.02833, allocations: 35.88 kB / 345.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.02834, allocations: 15.98 kB / 345.6 MB, free: 10.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002229/0.02857, allocations: 299.1 kB / 345.9 MB, free: 9.922 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02857, allocations: 3.938 kB / 345.9 MB, free: 9.918 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004296/0.029, allocations: 183.7 kB / 346.1 MB, free: 9.738 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001226/0.03022, allocations: 1.458 MB / 347.6 MB, free: 8.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007317/0.03095, allocations: 0.5605 MB / 348.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.03096, allocations: 0.875 kB / 348.1 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.03133, allocations: 378.1 kB / 348.5 MB, free: 7.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.03171, allocations: 77.67 kB / 348.6 MB, free: 7.215 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004772/0.03648, allocations: 4.838 MB / 353.4 MB, free: 2.191 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001801/0.03666, allocations: 267.3 kB / 353.7 MB, free: 1.902 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.03679, allocations: 48.45 kB / 353.7 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.03693, allocations: 184.4 kB / 353.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.03693, allocations: 0 / 353.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.06402, allocations: 12.72 MB / 366.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.108, allocations: 15.8 kB / 366.6 MB, free: 5.188 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.v_out in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv. Warning: Get data of variable opAmp.v_out from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,opAmp.v_out,rootMeanSquare.mean.x Variables in the result:time,rootMeanSquare.mean.x [Calling sys.exit(0), Time elapsed: 9.808364731259644]