Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.001447/0.001447, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001545/0.001545, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.378/1.378, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 47.92 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2644, allocations: 52.19 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Adder): time 0.004475/0.2689, allocations: 2.94 MB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.2702, allocations: 0.74 MB / 427.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2704, allocations: 8 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.2705, allocations: 55.44 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.2708, allocations: 119 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.2711, allocations: 119.8 kB / 427.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004769/0.2715, allocations: 446.2 kB / 427.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002422/0.2718, allocations: 104.4 kB / 427.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.272, allocations: 179.3 kB / 428.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.2722, allocations: 183.2 kB / 428.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.028e-05/0.2723, allocations: 40 kB / 428.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.414e-05/0.2724, allocations: 44 kB / 428.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.831e-05/0.2724, allocations: 83.7 kB / 428.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001739/0.2726, allocations: 167.3 kB / 428.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.2732, allocations: 0.4981 MB / 429.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2732, allocations: 0 / 429.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2732, allocations: 0 / 429.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2732, allocations: 0 / 429.1 MB, free: 8.672 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.001099/0.2743, allocations: 0.6064 MB / 429.7 MB, free: 8.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.2743, allocations: 8.031 kB / 429.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.884e-05/0.2743, allocations: 8.844 kB / 429.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.2744, allocations: 70.72 kB / 429.8 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.2745, allocations: 44.66 kB / 429.8 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.2749, allocations: 241.9 kB / 430 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.2749, allocations: 25.03 kB / 430.1 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.275, allocations: 32.38 kB / 430.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007152/0.2757, allocations: 430 kB / 430.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.2757, allocations: 3.984 kB / 430.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.2757, allocations: 16 kB / 430.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.2757, allocations: 11.94 kB / 430.6 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005985/0.2763, allocations: 270.4 kB / 430.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.2783, allocations: 1.125 MB / 431.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.2789, allocations: 202.7 kB / 432.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.2791, allocations: 88.81 kB / 432.2 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2791, allocations: 4 kB / 432.2 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.2792, allocations: 34.56 kB / 432.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.2792, allocations: 7.938 kB / 432.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.002108/0.2813, allocations: 0.5642 MB / 432.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.2813, allocations: 55.41 kB / 432.9 MB, free: 4.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.2816, allocations: 296.2 kB / 433.2 MB, free: 4.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.2817, allocations: 33.7 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.2818, allocations: 212.3 kB / 433.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.2819, allocations: 59.52 kB / 433.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.152e-05/0.2819, allocations: 45.67 kB / 433.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2821, allocations: 342.8 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.2823, allocations: 79.97 kB / 433.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.2826, allocations: 162.2 kB / 434.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.283, allocations: 238.1 kB / 434.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.283, allocations: 0 / 434.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000995/0.284, allocations: 413.1 kB / 434.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2841, allocations: 11.98 kB / 434.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2841, allocations: 0 / 434.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004173/0.2845, allocations: 104.8 kB / 434.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.2846, allocations: 43.91 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.2877, allocations: 2.062 MB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.2879, allocations: 35.77 kB / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.2879, allocations: 11.98 kB / 437 MB, free: 316 kB / 334.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.0001616/0.2881, allocations: 153.8 kB / 437.1 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.2881, allocations: 31.81 kB / 437.2 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.45e-05/0.2882, allocations: 29.78 kB / 437.2 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2882, allocations: 4 kB / 437.2 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.2882, allocations: 0 / 437.2 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2882, allocations: 3.938 kB / 437.2 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.2895, allocations: 0.6467 MB / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2895, allocations: 0 / 437.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.006e-05/0.2895, allocations: 23.98 kB / 437.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003385/0.2899, allocations: 108.7 kB / 438 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.2899, allocations: 0 / 438 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002808/0.2927, allocations: 2.036 MB / 440 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2927, allocations: 4.031 kB / 440 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008435/0.2936, allocations: 400.5 kB / 440.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.2936, allocations: 43.73 kB / 440.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/0.2936, allocations: 0 / 440.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.2939, allocations: 23.98 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.2939, allocations: 19.89 kB / 440.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2939, allocations: 4 kB / 440.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.2941, allocations: 211.1 kB / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2941, allocations: 0 / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004425/0.2946, allocations: 83.89 kB / 440.8 MB, free: 12.3 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.001182/0.2958, allocations: 0.9471 MB / 441.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007171/0.2965, allocations: 337.7 kB / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2965, allocations: 0 / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.2968, allocations: 222.5 kB / 442.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.2972, allocations: 41.53 kB / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004818/0.302, allocations: 3.132 MB / 445.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.3022, allocations: 164.8 kB / 445.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.417e-05/0.3023, allocations: 30.27 kB / 445.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3024, allocations: 95.41 kB / 445.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3024, allocations: 0 / 445.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.3364, allocations: 6.769 MB / 452.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.93, allocations: 10.72 kB / 452.5 MB, free: 0.543 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Adder/Adder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.333638541051187]