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.001806/0.001806, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002705/0.002705, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001577/0.001577, allocations: 51.91 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.268, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004679/0.2727, allocations: 2.755 MB / 433.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.2742, allocations: 0.7285 MB / 434.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.2745, allocations: 7.938 kB / 434.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.2747, allocations: 51.5 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.2749, allocations: 103.2 kB / 434.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.2753, allocations: 123.8 kB / 434.9 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005181/0.2758, allocations: 414.4 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.276, allocations: 85.36 kB / 435.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2762, allocations: 159.4 kB / 435.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.2765, allocations: 151.2 kB / 435.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.944e-05/0.2765, allocations: 40 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.623e-05/0.2766, allocations: 40 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.32e-05/0.2767, allocations: 91.61 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.2769, allocations: 135.5 kB / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005903/0.2775, allocations: 466.2 kB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2775, allocations: 0 / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2775, allocations: 0 / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.2775, allocations: 0 / 436.4 MB, free: 1.32 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001485/0.279, allocations: 0.6198 MB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.279, allocations: 8.031 kB / 437.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.928e-05/0.2791, allocations: 58.72 kB / 437.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.692e-05/0.2792, allocations: 36.7 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005746/0.2797, allocations: 249.9 kB / 437.4 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.2798, allocations: 20.81 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.2798, allocations: 24.38 kB / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007961/0.2806, allocations: 382.2 kB / 437.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.2806, allocations: 4 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.2807, allocations: 8 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2807, allocations: 8 kB / 437.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000784/0.2815, allocations: 281.8 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.2833, allocations: 1.018 MB / 439.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008446/0.2842, allocations: 242.5 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.2845, allocations: 108.7 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.2845, allocations: 0 / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005068/0.285, allocations: 233.2 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.2851, allocations: 0 / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002288/0.2873, allocations: 0.5945 MB / 440.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.2874, allocations: 107 kB / 440.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.2877, allocations: 293.7 kB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.2878, allocations: 33.64 kB / 440.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.2879, allocations: 208 kB / 440.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.288, allocations: 47.62 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.2881, allocations: 53.89 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2882, allocations: 334.8 kB / 441.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.2886, allocations: 133.9 kB / 441.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.289, allocations: 298.3 kB / 441.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007147/0.2897, allocations: 312.6 kB / 442.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2897, allocations: 0 / 442.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001295/0.291, allocations: 0.5014 MB / 442.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.2911, allocations: 44.42 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2911, allocations: 4 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003638/0.2915, allocations: 84.8 kB / 442.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.2917, allocations: 55.89 kB / 442.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.2945, allocations: 1.945 MB / 444.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.2949, allocations: 59.73 kB / 444.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.2949, allocations: 15.92 kB / 444.8 MB, free: 8.43 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.0001665/0.2951, allocations: 149.8 kB / 444.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.2951, allocations: 27.81 kB / 444.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.593e-05/0.2952, allocations: 33.7 kB / 445 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2952, allocations: 0 / 445 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2952, allocations: 0 / 445 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2952, allocations: 0 / 445 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.2954, allocations: 260.6 kB / 445.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2954, allocations: 0 / 445.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.2956, allocations: 23.97 kB / 445.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002699/0.2959, allocations: 84.92 kB / 445.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.2959, allocations: 4 kB / 445.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/0.2983, allocations: 1.863 MB / 447.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2983, allocations: 0 / 447.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.2994, allocations: 369.6 kB / 447.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.2994, allocations: 23.84 kB / 447.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.964e-05/0.2995, allocations: 11.98 kB / 447.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2997, allocations: 35.95 kB / 447.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.976e-05/0.2998, allocations: 19.95 kB / 447.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.2998, allocations: 4 kB / 447.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000208/0.3, allocations: 209.1 kB / 447.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3, allocations: 0 / 447.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004039/0.3004, allocations: 71.89 kB / 447.9 MB, free: 5.074 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.001382/0.3018, allocations: 0.9127 MB / 448.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.3031, allocations: 0.5074 MB / 449.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3031, allocations: 0 / 449.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.3036, allocations: 230.5 kB / 449.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.304, allocations: 61.14 kB / 449.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007541/0.3115, allocations: 3.708 MB / 453.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.3117, allocations: 142.9 kB / 453.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.3118, allocations: 22.3 kB / 453.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3119, allocations: 87.41 kB / 453.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3119, allocations: 0 / 453.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03959/0.3515, allocations: 7.57 MB / 461.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.7, allocations: 18.92 kB / 461.2 MB, free: 7.738 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.233433500863612]