Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.001713/0.001713, allocations: 112 kB / 20.43 MB, free: 1.465 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.002256/0.002256, allocations: 186.9 kB / 23.71 MB, free: 4.719 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.455/1.455, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 47.92 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2437, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004543/0.2482, allocations: 3.251 MB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.25, allocations: 0.9701 MB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.2502, allocations: 4 kB / 426.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002338/0.2504, allocations: 63.36 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.2508, allocations: 125.8 kB / 427 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.2511, allocations: 147.7 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.2516, allocations: 489.9 kB / 427.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2519, allocations: 87.64 kB / 427.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.2521, allocations: 195.3 kB / 427.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.2524, allocations: 215 kB / 428.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.795e-05/0.2525, allocations: 40 kB / 428.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.2527, allocations: 75.97 kB / 428.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.513e-05/0.2527, allocations: 95.72 kB / 428.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.2529, allocations: 210.9 kB / 428.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005867/0.2535, allocations: 0.4983 MB / 429.1 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2535, allocations: 0 / 429.1 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.15e-06/0.2535, allocations: 4 kB / 429.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.2535, allocations: 0 / 429.1 MB, free: 8.141 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001371/0.2549, allocations: 0.6685 MB / 429.7 MB, free: 7.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.255, allocations: 11.97 kB / 429.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.42e-05/0.255, allocations: 74.72 kB / 429.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/0.2551, allocations: 48.66 kB / 429.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.2556, allocations: 249.3 kB / 430.1 MB, free: 7.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.2556, allocations: 25.03 kB / 430.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-05/0.2557, allocations: 36.38 kB / 430.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.2564, allocations: 349.2 kB / 430.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2564, allocations: 0 / 430.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.2564, allocations: 16 kB / 430.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.2564, allocations: 4 kB / 430.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.2569, allocations: 242.4 kB / 430.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.2589, allocations: 1.128 MB / 431.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.2595, allocations: 263.5 kB / 432.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005006/0.26, allocations: 197.3 kB / 432.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003219/0.2604, allocations: 64.16 kB / 432.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.2604, allocations: 46.78 kB / 432.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.392e-06/0.2604, allocations: 3.938 kB / 432.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001314/0.2617, allocations: 458.6 kB / 432.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.2618, allocations: 81.11 kB / 433 MB, free: 4.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.2621, allocations: 328.5 kB / 433.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.2622, allocations: 33.7 kB / 433.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.2623, allocations: 212.5 kB / 433.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.304e-05/0.2624, allocations: 107.1 kB / 433.7 MB, free: 3.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.2625, allocations: 74.02 kB / 433.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2627, allocations: 358.7 kB / 434.1 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.2629, allocations: 104.6 kB / 434.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.2632, allocations: 185.8 kB / 434.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005152/0.2637, allocations: 296.3 kB / 434.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2637, allocations: 0 / 434.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008242/0.2646, allocations: 433.9 kB / 435.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.2646, allocations: 4 kB / 435.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2646, allocations: 4 kB / 435.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002612/0.2649, allocations: 68.75 kB / 435.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.2652, allocations: 79.89 kB / 435.2 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.2672, allocations: 1.84 MB / 437.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.2674, allocations: 39.86 kB / 437.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.2675, allocations: 16 kB / 437.1 MB, free: 15.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.2677, allocations: 157.7 kB / 437.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.051e-05/0.2677, allocations: 39.75 kB / 437.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007309/0.2685, allocations: 326.6 kB / 437.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.2685, allocations: 7.984 kB / 437.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2685, allocations: 3.938 kB / 437.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2685, allocations: 0 / 437.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004777/0.269, allocations: 372.3 kB / 438 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.269, allocations: 3.938 kB / 438 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.2693, allocations: 51.97 kB / 438.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.2695, allocations: 56.81 kB / 438.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.2695, allocations: 8 kB / 438.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004863/0.27, allocations: 0.6187 MB / 438.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.27, allocations: 4.031 kB / 438.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009554/0.271, allocations: 0.517 MB / 439.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.271, allocations: 35.69 kB / 439.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.2711, allocations: 4 kB / 439.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/0.2713, allocations: 23.98 kB / 439.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.2714, allocations: 19.95 kB / 439.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.2714, allocations: 8 kB / 439.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.2717, allocations: 235.1 kB / 439.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2717, allocations: 0 / 439.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.2722, allocations: 123.7 kB / 439.7 MB, free: 12.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001342/0.2735, allocations: 1.085 MB / 440.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008615/0.2744, allocations: 402.1 kB / 441.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2744, allocations: 0 / 441.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.2747, allocations: 136.3 kB / 441.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.2751, allocations: 44.64 kB / 441.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005259/0.2803, allocations: 3.75 MB / 445.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.2808, allocations: 0.7912 MB / 445.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.2809, allocations: 42.89 kB / 445.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.2811, allocations: 127.4 kB / 446.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2811, allocations: 0 / 446.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04053/0.3216, allocations: 8.04 MB / 454.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.54, allocations: 4 kB / 454.1 MB, free: 14.54 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv --start-time 0 --stop-time 0.003 --timeout 50 --relative-tolerance 2e-07 --interface-type ModelExchange --solver CVode --output-interval 1.2e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AmplifierWithOpAmpDetailed.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.v_source in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv. Warning: Get data of variable opAmp.v_source from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv failed! Error: Could not read variable opAmp.x in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv. Warning: Get data of variable opAmp.x from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.171323971000675]