Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.001263/0.001263, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001369/0.001369, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.Adder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 43.92 kB / 377.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2418, allocations: 53.37 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.004542/0.2463, allocations: 2.971 MB / 434.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.2479, allocations: 0.7752 MB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.2481, allocations: 7.938 kB / 434.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.2483, allocations: 71.36 kB / 434.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.2485, allocations: 115 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.2488, allocations: 135.8 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.2493, allocations: 442.2 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.2495, allocations: 118 kB / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.2498, allocations: 175.3 kB / 435.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.25, allocations: 183.2 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-05/0.2501, allocations: 47.98 kB / 436.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.508e-05/0.2502, allocations: 44 kB / 436.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.2502, allocations: 87.69 kB / 436.3 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2504, allocations: 163.2 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005658/0.251, allocations: 0.5098 MB / 436.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.251, allocations: 0 / 436.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.251, allocations: 4 kB / 436.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.251, allocations: 0 / 436.9 MB, free: 0.7773 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001093/0.2521, allocations: 0.5948 MB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.2521, allocations: 12.03 kB / 437.5 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.283e-05/0.2522, allocations: 66.72 kB / 437.6 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.2524, allocations: 52.7 kB / 437.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.2528, allocations: 257.8 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.2529, allocations: 25.03 kB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.2529, allocations: 28.38 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.2536, allocations: 430.3 kB / 438.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2536, allocations: 11.92 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.2536, allocations: 12 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.2536, allocations: 8 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005653/0.2542, allocations: 266.5 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.2561, allocations: 1.136 MB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.2567, allocations: 202.7 kB / 440 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.2569, allocations: 92.81 kB / 440.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.2569, allocations: 0 / 440.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.2569, allocations: 34.56 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.012e-06/0.2569, allocations: 0 / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00201/0.2589, allocations: 0.5642 MB / 440.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.259, allocations: 55.34 kB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.2593, allocations: 308.1 kB / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.2593, allocations: 29.64 kB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.2595, allocations: 216.3 kB / 441.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.104e-05/0.2595, allocations: 59.48 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.917e-05/0.2596, allocations: 49.7 kB / 441.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2598, allocations: 338.8 kB / 441.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.26, allocations: 83.89 kB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.2602, allocations: 159 kB / 442 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.2607, allocations: 246.1 kB / 442.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.2607, allocations: 3.938 kB / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009459/0.2616, allocations: 404.6 kB / 442.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.2617, allocations: 11.94 kB / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.2617, allocations: 64 / 442.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004159/0.2621, allocations: 108.7 kB / 442.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.2622, allocations: 35.98 kB / 442.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.2654, allocations: 2.059 MB / 444.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.2656, allocations: 35.84 kB / 444.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.2657, allocations: 8 kB / 444.9 MB, free: 8.402 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (22): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 0.0001834/0.2658, allocations: 153.8 kB / 445 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/0.2659, allocations: 31.81 kB / 445 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.869e-05/0.266, allocations: 25.84 kB / 445.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.266, allocations: 7.938 kB / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.266, allocations: 0 / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.266, allocations: 0 / 445.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.2672, allocations: 0.6655 MB / 445.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2672, allocations: 0 / 445.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.943e-05/0.2673, allocations: 19.92 kB / 445.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000328/0.2677, allocations: 104.7 kB / 445.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.2677, allocations: 0 / 445.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/0.2705, allocations: 2.028 MB / 447.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2705, allocations: 8.031 kB / 447.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008521/0.2713, allocations: 412.3 kB / 448.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.43e-05/0.2714, allocations: 35.72 kB / 448.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.2714, allocations: 4 kB / 448.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.2716, allocations: 23.98 kB / 448.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.2717, allocations: 15.91 kB / 448.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.2717, allocations: 8 kB / 448.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.2719, allocations: 211.1 kB / 448.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2719, allocations: 7.938 kB / 448.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004726/0.2724, allocations: 87.84 kB / 448.7 MB, free: 4.383 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * 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.001147/0.2735, allocations: 0.9316 MB / 449.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007406/0.2743, allocations: 337.5 kB / 449.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2743, allocations: 0 / 449.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003619/0.2746, allocations: 227.2 kB / 450.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.275, allocations: 38.59 kB / 450.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/0.2798, allocations: 3.148 MB / 453.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.28, allocations: 160.8 kB / 453.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.2801, allocations: 34.27 kB / 453.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.2802, allocations: 91.41 kB / 453.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2802, allocations: 0 / 453.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03789/0.3181, allocations: 7.183 MB / 460.8 MB, free: 8.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.4, allocations: 14.08 kB / 460.8 MB, free: 8.191 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_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_Adder.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable vOut.v in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.csv. Warning: Get data of variable vOut.v from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.784117567003705]