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.001913/0.001913, allocations: 123.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.002147/0.002147, allocations: 208.2 kB / 20.75 MB, free: 2.336 MB / 14.72 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 1.48/1.48, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002383/0.002383, allocations: 52.02 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.115, allocations: 53.33 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.00422/0.1192, allocations: 2.821 MB / 429.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1205, allocations: 0.6777 MB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.1206, allocations: 4 kB / 429.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.1208, allocations: 55.5 kB / 429.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.121, allocations: 91.23 kB / 430 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.1212, allocations: 87.77 kB / 430.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004238/0.1217, allocations: 374.5 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1219, allocations: 86.95 kB / 430.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.122, allocations: 151.4 kB / 430.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.1223, allocations: 167.3 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.804e-05/0.1223, allocations: 36 kB / 430.9 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.361e-05/0.1224, allocations: 36 kB / 430.9 MB, free: 176 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.1225, allocations: 75.69 kB / 431 MB, free: 100 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2028/0.3252, allocations: 158.8 kB / 431.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000523/0.3257, allocations: 375.3 kB / 431.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3258, allocations: 0.6875 kB / 431.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3258, allocations: 0 / 431.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.3258, allocations: 0.625 kB / 431.5 MB, free: 7.98 MB / 350.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.001195/0.327, allocations: 0.6559 MB / 432.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.327, allocations: 9.562 kB / 432.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.664e-05/0.3271, allocations: 60.88 kB / 432.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.306e-05/0.3271, allocations: 38.7 kB / 432.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.3275, allocations: 283 kB / 432.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.3275, allocations: 18.31 kB / 432.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.889e-05/0.3275, allocations: 25.16 kB / 432.6 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.3282, allocations: 302.5 kB / 432.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3282, allocations: 0 / 432.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.3282, allocations: 11.34 kB / 432.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3283, allocations: 5.906 kB / 432.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007649/0.329, allocations: 255.3 kB / 433.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.3304, allocations: 1.092 MB / 434.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007483/0.3312, allocations: 207.5 kB / 434.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.3315, allocations: 89.33 kB / 434.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.3315, allocations: 4.422 kB / 434.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004181/0.3319, allocations: 169.2 kB / 434.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.3319, allocations: 1.281 kB / 434.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002055/0.334, allocations: 0.5069 MB / 435.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.334, allocations: 105.9 kB / 435.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.3343, allocations: 292.9 kB / 435.6 MB, free: 6.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.3343, allocations: 27.77 kB / 435.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.88e-05/0.3344, allocations: 197 kB / 435.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3344, allocations: 45.06 kB / 435.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.3345, allocations: 53.95 kB / 435.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.104e-05/0.3346, allocations: 332.4 kB / 436.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.3349, allocations: 96.56 kB / 436.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.3353, allocations: 202.2 kB / 436.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006699/0.336, allocations: 300 kB / 436.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.336, allocations: 5.156 kB / 436.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001198/0.3372, allocations: 422.9 kB / 437.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.3372, allocations: 36.11 kB / 437.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.719e-06/0.3372, allocations: 3.75 kB / 437.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003556/0.3376, allocations: 74.81 kB / 437.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.3378, allocations: 47.75 kB / 437.4 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/0.34, allocations: 1.712 MB / 439.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.3403, allocations: 59.38 kB / 439.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.3403, allocations: 11.52 kB / 439.2 MB, free: 3.727 MB / 350.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.0001301/0.3405, allocations: 153.6 kB / 439.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.3405, allocations: 26.81 kB / 439.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.3406, allocations: 27.47 kB / 439.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3406, allocations: 2.188 kB / 439.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3406, allocations: 4 kB / 439.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3406, allocations: 1.125 kB / 439.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.3408, allocations: 298.6 kB / 439.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3408, allocations: 0 / 439.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.341, allocations: 18.42 kB / 439.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002549/0.3412, allocations: 72.88 kB / 439.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3412, allocations: 4.578 kB / 439.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001833/0.3431, allocations: 1.707 MB / 441.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3431, allocations: 0 / 441.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/0.3441, allocations: 315.2 kB / 441.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.3441, allocations: 116 kB / 441.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.3442, allocations: 1.969 kB / 441.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.3444, allocations: 30.77 kB / 441.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.3445, allocations: 19.09 kB / 441.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.3445, allocations: 4.984 kB / 441.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.3447, allocations: 207.9 kB / 442.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3447, allocations: 0 / 442.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.3451, allocations: 80.81 kB / 442.2 MB, free: 1.613 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.001176/0.3462, allocations: 0.8505 MB / 443.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009625/0.3472, allocations: 405.8 kB / 443.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3472, allocations: 192 / 443.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004278/0.3476, allocations: 226.9 kB / 443.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.3479, allocations: 41.5 kB / 443.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005427/0.3534, allocations: 2.999 MB / 446.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3538, allocations: 0.7524 MB / 447.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.3539, allocations: 28.17 kB / 447.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.354, allocations: 74.08 kB / 447.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of SimCode: time 1.203e-06/0.354, allocations: 0 / 447.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03565/0.3897, allocations: 6.873 MB / 454.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.13, allocations: 5.25 kB / 454.5 MB, free: 12.25 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/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: 14.648049196010106]