Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.00141/0.00141, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001368/0.001368, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.453/1.453, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 51.92 kB / 373 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 53.33 MB / 426.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004699/0.1155, allocations: 2.964 MB / 429.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.1173, allocations: 0.7674 MB / 430.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003165/0.1176, allocations: 8 kB / 430.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.1178, allocations: 51.5 kB / 430.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000346/0.1182, allocations: 103.1 kB / 430.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003913/0.1186, allocations: 119.9 kB / 430.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005556/0.1191, allocations: 410.4 kB / 430.8 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.1193, allocations: 95.25 kB / 430.8 MB, free: 308 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.1196, allocations: 163.4 kB / 431 MB, free: 144 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2021/0.3216, allocations: 169.9 kB / 431.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.3218, allocations: 40.12 kB / 431.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.3219, allocations: 40.62 kB / 431.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.322, allocations: 75.2 kB / 431.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.3222, allocations: 178.5 kB / 431.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.3227, allocations: 450.8 kB / 431.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3227, allocations: 1.062 kB / 431.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3227, allocations: 0 / 431.9 MB, free: 7.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.3227, allocations: 2.062 kB / 431.9 MB, free: 7.789 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001226/0.3239, allocations: 0.6866 MB / 432.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.324, allocations: 9.531 kB / 432.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.324, allocations: 60.2 kB / 432.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.3241, allocations: 41.86 kB / 432.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.3245, allocations: 296.6 kB / 433 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.3245, allocations: 22.61 kB / 433 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3245, allocations: 24.41 kB / 433.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/0.3252, allocations: 334.3 kB / 433.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3252, allocations: 1.094 kB / 433.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3253, allocations: 10.03 kB / 433.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3253, allocations: 5.344 kB / 433.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.326, allocations: 288.4 kB / 433.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.3277, allocations: 1.139 MB / 434.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008636/0.3286, allocations: 242.8 kB / 435.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003414/0.3289, allocations: 98.7 kB / 435.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.329, allocations: 3.594 kB / 435.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004853/0.3294, allocations: 188.4 kB / 435.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.3294, allocations: 1.688 kB / 435.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002508/0.332, allocations: 0.6642 MB / 436 MB, free: 6.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.332, allocations: 106.4 kB / 436.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003463/0.3323, allocations: 290.2 kB / 436.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.3324, allocations: 30.3 kB / 436.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3325, allocations: 207.5 kB / 436.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.3325, allocations: 42.03 kB / 436.7 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.3326, allocations: 54.27 kB / 436.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.319e-05/0.3327, allocations: 333.9 kB / 437.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.3331, allocations: 107.9 kB / 437.2 MB, free: 5.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.3335, allocations: 221.1 kB / 437.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007384/0.3342, allocations: 317.4 kB / 437.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3342, allocations: 3.047 kB / 437.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001327/0.3356, allocations: 479 kB / 438.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.3356, allocations: 34.11 kB / 438.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3356, allocations: 4.594 kB / 438.2 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004215/0.336, allocations: 92.12 kB / 438.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.3363, allocations: 49.47 kB / 438.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.3389, allocations: 2.066 MB / 440.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.3393, allocations: 56.89 kB / 440.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.3394, allocations: 19.28 kB / 440.5 MB, free: 3.426 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.3395, allocations: 155.1 kB / 440.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.3396, allocations: 23.39 kB / 440.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.074e-05/0.3396, allocations: 23.8 kB / 440.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3396, allocations: 1.469 kB / 440.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3396, allocations: 4 kB / 440.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3396, allocations: 2.219 kB / 440.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/0.34, allocations: 329.6 kB / 441 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.34, allocations: 0 / 441 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.3401, allocations: 26.97 kB / 441 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003008/0.3404, allocations: 86.08 kB / 441.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.3404, allocations: 1.75 kB / 441.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/0.3425, allocations: 1.98 MB / 443.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3425, allocations: 0 / 443.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.3436, allocations: 370 kB / 443.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.3437, allocations: 106.5 kB / 443.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.3437, allocations: 1.219 kB / 443.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.344, allocations: 41.73 kB / 443.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.048e-05/0.3441, allocations: 18.8 kB / 443.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3441, allocations: 3.016 kB / 443.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.3443, allocations: 200.1 kB / 443.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3443, allocations: 1.312 kB / 443.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005133/0.3448, allocations: 79.36 kB / 443.9 MB, free: 0.8906 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001456/0.3463, allocations: 0.912 MB / 444.8 MB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.3478, allocations: 493.6 kB / 445.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3478, allocations: 0 / 445.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000577/0.3484, allocations: 240.7 kB / 445.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.3488, allocations: 49.5 kB / 445.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008234/0.357, allocations: 3.592 MB / 449.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.3574, allocations: 0.7552 MB / 449.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.3576, allocations: 27.23 kB / 450 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.3577, allocations: 83.8 kB / 450 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3577, allocations: 0 / 450 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04542/0.4032, allocations: 6.91 MB / 456.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.8, allocations: 5.203 kB / 457 MB, free: 11.13 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_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_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable buffer.opAmp.out.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv. Warning: Get data of variable buffer.opAmp.out.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv failed! Error: Could not read variable buffer.opAmp.out.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv. Warning: Get data of variable buffer.opAmp.out.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.312240287996246]