Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001746/0.001746, allocations: 112 kB / 20.43 MB, free: 1.449 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.001996/0.001996, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.46/1.46, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 51.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2784, allocations: 52.2 MB / 422.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004523/0.283, allocations: 2.807 MB / 425.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2842, allocations: 0.6504 MB / 426.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2844, allocations: 4 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.2846, allocations: 51.56 kB / 426.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.2848, allocations: 87.2 kB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.285, allocations: 91.83 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004688/0.2855, allocations: 378.5 kB / 426.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.2857, allocations: 87.36 kB / 426.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.2859, allocations: 155.4 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.2861, allocations: 163.3 kB / 427.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/0.2862, allocations: 40 kB / 427.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.544e-05/0.2863, allocations: 32 kB / 427.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.255e-05/0.2863, allocations: 75.69 kB / 427.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.2865, allocations: 167.2 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.287, allocations: 370.9 kB / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.287, allocations: 0 / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.287, allocations: 0 / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.287, allocations: 4 kB / 427.8 MB, free: 9.457 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001374/0.2883, allocations: 0.5858 MB / 428.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.2884, allocations: 11.97 kB / 428.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.982e-05/0.2885, allocations: 62.72 kB / 428.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.417e-05/0.2886, allocations: 36.69 kB / 428.5 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004694/0.289, allocations: 223 kB / 428.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.2891, allocations: 20.88 kB / 428.7 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/0.2891, allocations: 20.38 kB / 428.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007023/0.2898, allocations: 302.6 kB / 429 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2898, allocations: 4 kB / 429 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.2898, allocations: 12 kB / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.2899, allocations: 8 kB / 429.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.2907, allocations: 245.6 kB / 429.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.2926, allocations: 1.051 MB / 430.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007601/0.2933, allocations: 206.6 kB / 430.5 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.2936, allocations: 80.78 kB / 430.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.2937, allocations: 8 kB / 430.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004466/0.2941, allocations: 165.8 kB / 430.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.2941, allocations: 0 / 430.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002024/0.2961, allocations: 441.9 kB / 431.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.041e-05/0.2962, allocations: 110.8 kB / 431.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.2965, allocations: 281.9 kB / 431.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.2966, allocations: 29.64 kB / 431.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.2967, allocations: 208 kB / 431.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.2967, allocations: 39.69 kB / 431.9 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.589e-05/0.2968, allocations: 57.89 kB / 431.9 MB, free: 5.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.297, allocations: 334.8 kB / 432.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003236/0.2973, allocations: 96.09 kB / 432.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/0.2977, allocations: 198.1 kB / 432.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006874/0.2984, allocations: 301.4 kB / 432.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2984, allocations: 0 / 432.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001197/0.2996, allocations: 435.1 kB / 433.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.2996, allocations: 33.7 kB / 433.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.2997, allocations: 7.938 kB / 433.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.3, allocations: 72.89 kB / 433.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.3002, allocations: 51.91 kB / 433.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002405/0.3026, allocations: 1.615 MB / 435 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.303, allocations: 51.8 kB / 435.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.303, allocations: 11.94 kB / 435.1 MB, free: 1.617 MB / 334.1 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.000176/0.3032, allocations: 149.7 kB / 435.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.864e-05/0.3032, allocations: 27.86 kB / 435.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.3033, allocations: 25.7 kB / 435.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3033, allocations: 4 kB / 435.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.3033, allocations: 0 / 435.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3033, allocations: 0 / 435.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.3036, allocations: 276.4 kB / 435.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3036, allocations: 0 / 435.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.3037, allocations: 19.97 kB / 435.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.3039, allocations: 68.81 kB / 435.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.304, allocations: 128 / 435.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.3062, allocations: 1.605 MB / 437.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3062, allocations: 4.062 kB / 437.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009922/0.3072, allocations: 317.4 kB / 437.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.3073, allocations: 39.83 kB / 437.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.3073, allocations: 0 / 437.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.3075, allocations: 27.97 kB / 437.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.741e-05/0.3076, allocations: 27.95 kB / 437.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.3076, allocations: 11.88 kB / 437.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000212/0.3078, allocations: 201.2 kB / 437.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3078, allocations: 0 / 437.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003469/0.3082, allocations: 75.89 kB / 438 MB, free: 14.57 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: 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.001362/0.3095, allocations: 0.8549 MB / 438.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000965/0.3105, allocations: 405.9 kB / 439.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3105, allocations: 0 / 439.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004547/0.311, allocations: 226.5 kB / 439.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.3113, allocations: 45.66 kB / 439.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005173/0.3164, allocations: 2.999 MB / 442.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3168, allocations: 0.7479 MB / 443.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.696e-05/0.3169, allocations: 30.28 kB / 443.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.3171, allocations: 79.41 kB / 443.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3171, allocations: 0 / 443.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03759/0.3546, allocations: 7.021 MB / 450.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.96, allocations: 11.12 kB / 450.4 MB, free: 2.066 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv. Warning: Get data of variable vIn.signalSource.y from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.542517546000454]