Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.002164/0.002164, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002614/0.002614, allocations: 194.6 kB / 23.71 MB, free: 4.406 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.434/1.434, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 47.92 kB / 370.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2419, allocations: 52.17 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004667/0.2466, allocations: 2.751 MB / 425.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.248, allocations: 0.7012 MB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.2482, allocations: 11.88 kB / 426.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.2483, allocations: 51.5 kB / 426.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.2486, allocations: 103.2 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.2489, allocations: 119.8 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005171/0.2494, allocations: 418.4 kB / 426.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.2496, allocations: 89.36 kB / 426.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.2498, allocations: 151.5 kB / 427 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.25, allocations: 155.2 kB / 427.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.404e-05/0.2501, allocations: 40 kB / 427.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.722e-05/0.2501, allocations: 44 kB / 427.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.249e-05/0.2502, allocations: 83.69 kB / 427.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.2504, allocations: 147.3 kB / 427.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005101/0.2509, allocations: 454.3 kB / 427.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2509, allocations: 3.938 kB / 427.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2509, allocations: 0 / 427.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2509, allocations: 0 / 427.9 MB, free: 9.07 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.001328/0.2522, allocations: 0.6014 MB / 428.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2523, allocations: 8.031 kB / 428.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.398e-05/0.2524, allocations: 62.72 kB / 428.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.261e-05/0.2524, allocations: 36.75 kB / 428.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.2529, allocations: 245.8 kB / 428.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.2529, allocations: 24.88 kB / 428.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.253, allocations: 24.38 kB / 428.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007874/0.2538, allocations: 382.2 kB / 429.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2538, allocations: 0 / 429.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.2538, allocations: 12 kB / 429.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.2538, allocations: 4 kB / 429.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007976/0.2546, allocations: 285.8 kB / 429.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.2565, allocations: 1.018 MB / 430.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008776/0.2574, allocations: 242.5 kB / 430.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.2577, allocations: 101 kB / 430.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.2577, allocations: 7.938 kB / 430.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005051/0.2582, allocations: 233.2 kB / 431.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.2583, allocations: 4 kB / 431.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002259/0.2605, allocations: 0.5861 MB / 431.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.2606, allocations: 106.8 kB / 431.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/0.2609, allocations: 289.8 kB / 432.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.261, allocations: 37.69 kB / 432.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.2611, allocations: 204 kB / 432.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.2612, allocations: 47.64 kB / 432.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.2613, allocations: 45.94 kB / 432.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.2614, allocations: 334.8 kB / 432.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.2618, allocations: 137.8 kB / 432.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.2623, allocations: 298.2 kB / 433.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008047/0.2632, allocations: 323.6 kB / 433.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2632, allocations: 0 / 433.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001345/0.2645, allocations: 0.4975 MB / 434 MB, free: 2.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.145e-05/0.2646, allocations: 37.69 kB / 434 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2646, allocations: 0 / 434 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000433/0.265, allocations: 92.78 kB / 434.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.2652, allocations: 47.97 kB / 434.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003075/0.2683, allocations: 1.937 MB / 436.1 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.2687, allocations: 59.73 kB / 436.2 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.2687, allocations: 20 kB / 436.2 MB, free: 216 kB / 334.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.0002031/0.2689, allocations: 155.8 kB / 436.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.269, allocations: 23.86 kB / 436.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.341e-05/0.269, allocations: 25.77 kB / 436.4 MB, free: 0 / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/0.269, allocations: 4.047 kB / 436.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.2691, allocations: 128 / 436.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.2691, allocations: 0 / 436.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.2694, allocations: 272.5 kB / 436.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2694, allocations: 0 / 436.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.2695, allocations: 23.98 kB / 436.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002887/0.2698, allocations: 76.8 kB / 436.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.2698, allocations: 0 / 436.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/0.2734, allocations: 1.872 MB / 438.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/0.2734, allocations: 7.922 kB / 438.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.2752, allocations: 369.5 kB / 439 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.2753, allocations: 31.84 kB / 439 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.2754, allocations: 3.938 kB / 439 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003856/0.2757, allocations: 36.08 kB / 439.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.997e-05/0.2758, allocations: 19.97 kB / 439.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.2759, allocations: 8 kB / 439.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.2762, allocations: 201.2 kB / 439.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2762, allocations: 0 / 439.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007613/0.277, allocations: 75.89 kB / 439.4 MB, free: 12.84 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.002105/0.2791, allocations: 0.9055 MB / 440.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.2811, allocations: 0.5226 MB / 440.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2811, allocations: 0 / 440.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000794/0.2819, allocations: 227.2 kB / 441 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.2824, allocations: 48.47 kB / 441.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.2936, allocations: 3.697 MB / 444.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.2938, allocations: 162.7 kB / 444.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.294, allocations: 30.31 kB / 444.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.2942, allocations: 83.41 kB / 445 MB, free: 6.902 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2942, allocations: 0 / 445 MB, free: 6.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0407/0.3349, allocations: 7.543 MB / 452.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.03, allocations: 19.36 kB / 452.6 MB, free: 15.54 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv. Warning: Get data of variable buffer.opAmp.out.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv failed! Error: Could not read variable buffer.opAmp.out.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv. Warning: Get data of variable buffer.opAmp.out.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.46438615070656]