Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.000902/0.000902, allocations: 79.69 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.0008568/0.0008568, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9013/0.9013, allocations: 177.1 MB / 204.3 MB, free: 5.715 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.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.685e-05/2.898e-05, allocations: 2.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003002/0.003031, allocations: 2.646 MB / 327.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.004164, allocations: 0.6505 MB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.00432, allocations: 7.938 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.004455, allocations: 43.56 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.004637, allocations: 99.08 kB / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002894/0.004926, allocations: 87.81 kB / 328.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.005276, allocations: 390.3 kB / 328.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.00545, allocations: 91.27 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.005672, allocations: 211.6 kB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.005809, allocations: 119.7 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.27e-05/0.005851, allocations: 36 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.437e-05/0.005886, allocations: 39.94 kB / 329 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.005936, allocations: 75.72 kB / 329.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.667e-05/0.006032, allocations: 111.8 kB / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.00633, allocations: 386.8 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.006335, allocations: 4 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.006336, allocations: 0 / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.006342, allocations: 3.938 kB / 329.5 MB, free: 10.93 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009338/0.007275, allocations: 0.5848 MB / 330.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.007327, allocations: 12.03 kB / 330.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.468e-05/0.007381, allocations: 66.7 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.322e-05/0.007444, allocations: 36.7 kB / 330.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003243/0.007769, allocations: 218.1 kB / 330.5 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.007788, allocations: 16.88 kB / 330.5 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.007816, allocations: 20.38 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.008263, allocations: 354.7 kB / 330.8 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.008273, allocations: 192 / 330.8 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.008297, allocations: 20.11 kB / 330.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.008304, allocations: 7.938 kB / 330.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.008819, allocations: 253.8 kB / 331.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.009972, allocations: 0.9782 MB / 332.1 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.01038, allocations: 202.6 kB / 332.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.01053, allocations: 92.72 kB / 332.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.01055, allocations: 3.938 kB / 332.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.0109, allocations: 217.3 kB / 332.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.814e-06/0.0109, allocations: 4 kB / 332.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001116/0.01202, allocations: 441.8 kB / 333 MB, free: 7.207 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.01207, allocations: 106.8 kB / 333.1 MB, free: 7.078 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.0123, allocations: 285.8 kB / 333.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.01232, allocations: 29.7 kB / 333.4 MB, free: 6.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.01242, allocations: 204 kB / 333.6 MB, free: 6.547 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.01245, allocations: 43.69 kB / 333.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.01252, allocations: 53.89 kB / 333.7 MB, free: 6.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.01261, allocations: 334.8 kB / 334.1 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.01281, allocations: 125.8 kB / 334.2 MB, free: 5.977 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.0132, allocations: 275.2 kB / 334.5 MB, free: 5.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.01356, allocations: 304.2 kB / 334.8 MB, free: 5.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.01356, allocations: 4 kB / 334.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000643/0.01421, allocations: 453.5 kB / 335.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.01425, allocations: 37.69 kB / 335.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.01425, allocations: 4 kB / 335.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.01448, allocations: 76.84 kB / 335.3 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.0146, allocations: 43.95 kB / 335.4 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.01607, allocations: 1.616 MB / 337 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.01627, allocations: 55.73 kB / 337 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.01629, allocations: 8 kB / 337 MB, free: 2.863 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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: 1 * 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 {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.01642, allocations: 152.2 kB / 337.2 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.01644, allocations: 27.92 kB / 337.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.682e-05/0.01648, allocations: 29.77 kB / 337.2 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.01648, allocations: 0 / 337.2 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01648, allocations: 0 / 337.2 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01649, allocations: 0 / 337.2 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.01668, allocations: 240.5 kB / 337.5 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.01668, allocations: 3.984 kB / 337.5 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.01673, allocations: 15.98 kB / 337.5 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/0.01688, allocations: 76.73 kB / 337.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.0169, allocations: 8.125 kB / 337.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.01832, allocations: 1.581 MB / 339.2 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.01833, allocations: 3.938 kB / 339.2 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004927/0.01882, allocations: 313.5 kB / 339.5 MB, free: 248 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.146e-05/0.01888, allocations: 39.77 kB / 339.5 MB, free: 208 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.0189, allocations: 4 kB / 339.5 MB, free: 204 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.019, allocations: 23.97 kB / 339.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.01908, allocations: 31.95 kB / 339.6 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.01909, allocations: 4 kB / 339.6 MB, free: 144 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.01923, allocations: 201.2 kB / 339.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01923, allocations: 0 / 339.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002619/0.0195, allocations: 75.95 kB / 339.8 MB, free: 15.87 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008007/0.0203, allocations: 0.8502 MB / 340.7 MB, free: 14.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006001/0.0209, allocations: 431.4 kB / 341.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.0209, allocations: 4 kB / 341.1 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.02113, allocations: 239.2 kB / 341.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.02135, allocations: 41.14 kB / 341.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.02437, allocations: 3.111 MB / 344.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.298e-05/0.02445, allocations: 138.9 kB / 344.6 MB, free: 10.78 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.576e-05/0.02453, allocations: 26.28 kB / 344.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.841e-05/0.02461, allocations: 84.47 kB / 344.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.223e-06/0.02462, allocations: 3.938 kB / 344.8 MB, free: 10.67 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.04724, allocations: 7.583 MB / 352.3 MB, free: 3.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/7.935, allocations: 5.688 kB / 352.3 MB, free: 3.266 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_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_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vIn.signalSource.y in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv. Warning: Get data of variable vIn.signalSource.y from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.726357102394104]