Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.0008622/0.0008622, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009154/0.0009154, allocations: 170.3 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.9537/0.9537, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.807e-06/3.807e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.601e-05/3.982e-05, allocations: 2.281 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.00664/0.00668, allocations: 4.072 MB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.008975, allocations: 1.222 MB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003241/0.009299, allocations: 15.94 kB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003831/0.009682, allocations: 138.7 kB / 330.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004004/0.01008, allocations: 218.1 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.01057, allocations: 227.4 kB / 330.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007141/0.01129, allocations: 0.7936 MB / 331.3 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003003/0.01159, allocations: 183.1 kB / 331.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.01215, allocations: 443 kB / 331.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.01246, allocations: 235.2 kB / 332.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.042e-05/0.01253, allocations: 67.94 kB / 332.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.522e-05/0.01263, allocations: 68 kB / 332.3 MB, free: 8.207 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.021e-05/0.01272, allocations: 159.3 kB / 332.4 MB, free: 8.051 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.01289, allocations: 235.4 kB / 332.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006576/0.01355, allocations: 0.7709 MB / 333.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.01356, allocations: 0 / 333.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.01356, allocations: 0 / 333.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.01358, allocations: 4 kB / 333.4 MB, free: 7.043 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.001387/0.01496, allocations: 0.9569 MB / 334.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.01501, allocations: 8.031 kB / 334.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.297e-05/0.01511, allocations: 94.7 kB / 334.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.01535, allocations: 96.45 kB / 334.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004473/0.0158, allocations: 359.5 kB / 334.9 MB, free: 5.473 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.01583, allocations: 41.69 kB / 335 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.01588, allocations: 56.38 kB / 335 MB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000746/0.01663, allocations: 0.7258 MB / 335.7 MB, free: 4.598 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.01664, allocations: 3.938 kB / 335.8 MB, free: 4.594 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.01668, allocations: 24 kB / 335.8 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.01669, allocations: 12 kB / 335.8 MB, free: 4.559 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.01725, allocations: 421 kB / 336.2 MB, free: 4.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.01935, allocations: 1.635 MB / 337.8 MB, free: 2.418 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.01989, allocations: 355.9 kB / 338.2 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.02052, allocations: 415.6 kB / 338.6 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.02055, allocations: 4.328 kB / 338.6 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004041/0.02095, allocations: 490.1 kB / 339.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.493e-06/0.02095, allocations: 0 / 339.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.002022/0.02298, allocations: 1.098 MB / 340.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.02309, allocations: 247.3 kB / 340.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.02348, allocations: 437.9 kB / 340.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.02352, allocations: 37.7 kB / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.02368, allocations: 316.8 kB / 341.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.105e-05/0.02377, allocations: 146.7 kB / 341.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.623e-05/0.02387, allocations: 98.08 kB / 341.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.024, allocations: 358.7 kB / 341.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.02421, allocations: 144.9 kB / 341.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.02455, allocations: 0.4931 MB / 342.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004873/0.02504, allocations: 447.2 kB / 342.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.02504, allocations: 0 / 342.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001065/0.02611, allocations: 0.7481 MB / 343.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.02613, allocations: 8.062 kB / 343.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.02614, allocations: 8 kB / 343.6 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.02661, allocations: 184.7 kB / 343.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.02682, allocations: 79.89 kB / 343.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002871/0.02969, allocations: 2.661 MB / 346.5 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.02999, allocations: 91.59 kB / 346.6 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.03002, allocations: 19.98 kB / 346.6 MB, free: 9.137 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.0002275/0.03024, allocations: 181.7 kB / 346.8 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.453e-05/0.03032, allocations: 55.61 kB / 346.9 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.03039, allocations: 52.97 kB / 346.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.03039, allocations: 4 kB / 346.9 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.03039, allocations: 4 kB / 346.9 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.0304, allocations: 7.922 kB / 346.9 MB, free: 8.828 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.03179, allocations: 1.16 MB / 348.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.03179, allocations: 0 / 348.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.03191, allocations: 47.98 kB / 348.1 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003287/0.03224, allocations: 180.7 kB / 348.3 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.03226, allocations: 8 kB / 348.3 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.03487, allocations: 2.647 MB / 351 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.03487, allocations: 0 / 351 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.03611, allocations: 0.9065 MB / 351.9 MB, free: 3.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.03622, allocations: 55.62 kB / 351.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.03626, allocations: 11.98 kB / 351.9 MB, free: 3.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.03645, allocations: 44.03 kB / 352 MB, free: 3.586 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.03656, allocations: 35.94 kB / 352 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.03658, allocations: 12 kB / 352 MB, free: 3.539 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002719/0.03685, allocations: 299.1 kB / 352.3 MB, free: 3.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.03685, allocations: 0 / 352.3 MB, free: 3.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005114/0.03736, allocations: 195.6 kB / 352.5 MB, free: 3.059 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.001658/0.03902, allocations: 1.465 MB / 354 MB, free: 1.562 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009593/0.03998, allocations: 0.5566 MB / 354.5 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.03998, allocations: 4 kB / 354.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.04045, allocations: 375.2 kB / 354.9 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.04093, allocations: 69.94 kB / 355 MB, free: 0.543 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005616/0.04655, allocations: 4.9 MB / 359.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.04681, allocations: 267.6 kB / 360.1 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.04701, allocations: 52.53 kB / 360.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.04719, allocations: 184.4 kB / 360.4 MB, free: 10.94 MB / 330.7 MB Notification: Performance of SimCode: time 2.084e-06/0.04719, allocations: 0 / 360.4 MB, free: 10.94 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03096/0.07815, allocations: 12.92 MB / 373.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/7.89, allocations: 8 kB / 373.3 MB, free: 14.27 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.csv. Warning: Get data of variable opAmp.v_out from file Modelica_4.1.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.786075748503208]