Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.001479/0.001479, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.001667/0.001667, allocations: 208.2 kB / 24.52 MB, free: 4.066 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 47.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2507, allocations: 53.36 MB / 432 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004922/0.2556, allocations: 3.424 MB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2573, allocations: 0.8649 MB / 436.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.2575, allocations: 15.94 kB / 436.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.2577, allocations: 67.34 kB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.2579, allocations: 123 kB / 436.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.2583, allocations: 155.7 kB / 436.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00055/0.2588, allocations: 0.4902 MB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.2591, allocations: 125.4 kB / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004721/0.2596, allocations: 195.3 kB / 437.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003264/0.2599, allocations: 207.1 kB / 437.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.029e-05/0.26, allocations: 48 kB / 437.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.2601, allocations: 52 kB / 437.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.958e-05/0.2602, allocations: 99.62 kB / 437.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.2604, allocations: 226.9 kB / 438 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000729/0.2612, allocations: 0.5651 MB / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.2612, allocations: 0 / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2612, allocations: 0 / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2612, allocations: 3.984 kB / 438.6 MB, free: 176 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.00128/0.2625, allocations: 0.6339 MB / 439.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2625, allocations: 16.03 kB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.49e-05/0.2625, allocations: 9.188 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.637e-05/0.2626, allocations: 74.72 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.2628, allocations: 52.64 kB / 439.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.2633, allocations: 274.6 kB / 439.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.164e-05/0.2634, allocations: 33.12 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.059e-05/0.2634, allocations: 31.94 kB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007373/0.2642, allocations: 394.2 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2642, allocations: 0 / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.2642, allocations: 16 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.2642, allocations: 8 kB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006617/0.2649, allocations: 303.8 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.2671, allocations: 1.388 MB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006456/0.2678, allocations: 222.7 kB / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.268, allocations: 89.09 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.268, allocations: 4 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.2681, allocations: 38.5 kB / 442.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.864e-06/0.2681, allocations: 0 / 442.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002212/0.2703, allocations: 0.5992 MB / 442.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.2703, allocations: 63.28 kB / 442.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.2707, allocations: 316.5 kB / 443.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.2707, allocations: 29.7 kB / 443.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.2709, allocations: 236.1 kB / 443.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.859e-05/0.2709, allocations: 59.53 kB / 443.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.271, allocations: 49.7 kB / 443.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2712, allocations: 338.8 kB / 443.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.2714, allocations: 79.95 kB / 443.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002916/0.2717, allocations: 166.1 kB / 444 MB, free: 10.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.2722, allocations: 255.6 kB / 444.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2722, allocations: 3.938 kB / 444.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001005/0.2732, allocations: 419 kB / 444.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2732, allocations: 8 kB / 444.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.2732, allocations: 4 kB / 444.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/0.2737, allocations: 117.6 kB / 444.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.2738, allocations: 43.92 kB / 444.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004363/0.2782, allocations: 3.357 MB / 448.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.2784, allocations: 35.77 kB / 448.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.2784, allocations: 15.94 kB / 448.3 MB, free: 5.914 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * 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: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001846/0.2786, allocations: 153.8 kB / 448.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.2787, allocations: 39.73 kB / 448.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.2787, allocations: 30.25 kB / 448.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2787, allocations: 4 kB / 448.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.2787, allocations: 0 / 448.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2787, allocations: 0 / 448.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004123/0.2791, allocations: 336.4 kB / 448.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2791, allocations: 0 / 448.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.286e-05/0.2792, allocations: 27.98 kB / 448.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003637/0.2796, allocations: 109.6 kB / 449 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2796, allocations: 8 kB / 449 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003657/0.2833, allocations: 3.256 MB / 452.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.2833, allocations: 7.984 kB / 452.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009194/0.2842, allocations: 428.8 kB / 452.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.2842, allocations: 31.78 kB / 452.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.2843, allocations: 0 / 452.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.2845, allocations: 27.98 kB / 452.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.2845, allocations: 11.97 kB / 452.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2846, allocations: 8 kB / 452.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000245/0.2848, allocations: 231 kB / 453 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2848, allocations: 0 / 453 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004773/0.2853, allocations: 99.78 kB / 453.1 MB, free: 0.8281 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 (9): * 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: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.2865, allocations: 0.9636 MB / 454 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.2877, allocations: 0.5109 MB / 454.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2877, allocations: 0 / 454.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004522/0.2881, allocations: 337.7 kB / 454.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.2885, allocations: 56.34 kB / 454.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/0.2936, allocations: 3.262 MB / 458.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.2941, allocations: 0.7873 MB / 459 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.2942, allocations: 18.98 kB / 459 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.2944, allocations: 107.4 kB / 459.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2944, allocations: 0 / 459.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03461/0.329, allocations: 7.429 MB / 466.5 MB, free: 3.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.1, allocations: 7.938 kB / 466.5 MB, free: 3.281 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.471839156991336]