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.001577/0.001577, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002394/0.002394, allocations: 210.8 kB / 23.73 MB, free: 4.523 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.574/1.574, allocations: 230.6 MB / 257.5 MB, free: 7.801 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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 51.92 kB / 378.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3102, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004806/0.315, allocations: 3.124 MB / 434.7 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.3168, allocations: 0.8261 MB / 435.5 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002441/0.3171, allocations: 7.938 kB / 435.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.3173, allocations: 67.36 kB / 435.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.3176, allocations: 123 kB / 435.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004309/0.318, allocations: 147.8 kB / 435.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005691/0.3186, allocations: 0.4941 MB / 436.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.3188, allocations: 137 kB / 436.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.3192, allocations: 195.3 kB / 436.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.3195, allocations: 207 kB / 436.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.225e-05/0.3195, allocations: 52 kB / 437 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001106/0.3196, allocations: 48 kB / 437 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.809e-05/0.3197, allocations: 99.69 kB / 437.1 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.3199, allocations: 183.2 kB / 437.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.3206, allocations: 0.5706 MB / 437.8 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3206, allocations: 0 / 437.8 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3206, allocations: 0 / 437.8 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.3206, allocations: 4 kB / 437.9 MB, free: 432 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.001231/0.3218, allocations: 0.6339 MB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3219, allocations: 12.03 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.3221, allocations: 56.64 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.3226, allocations: 262.8 kB / 438.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.3226, allocations: 29.38 kB / 438.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-05/0.3227, allocations: 44.11 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008172/0.3235, allocations: 496.9 kB / 439.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.3235, allocations: 4 kB / 439.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.3236, allocations: 12 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.3236, allocations: 8 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000642/0.3242, allocations: 299.9 kB / 439.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.3265, allocations: 1.237 MB / 440.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.3271, allocations: 218.8 kB / 441.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.3273, allocations: 84.81 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.3274, allocations: 8 kB / 441.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3274, allocations: 34.5 kB / 441.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 3.296e-06/0.3274, allocations: 4 kB / 441.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002261/0.3296, allocations: 0.5992 MB / 441.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.3297, allocations: 51.41 kB / 441.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.3301, allocations: 289.8 kB / 442.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.3301, allocations: 33.64 kB / 442.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.3303, allocations: 232.1 kB / 442.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.109e-05/0.3304, allocations: 55.53 kB / 442.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.822e-05/0.3305, allocations: 61.66 kB / 442.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3307, allocations: 334.8 kB / 442.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.3309, allocations: 87.95 kB / 443 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/0.3312, allocations: 161.3 kB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.3316, allocations: 243.7 kB / 443.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3316, allocations: 0 / 443.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00107/0.3327, allocations: 430 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.3327, allocations: 4 kB / 443.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3327, allocations: 7.938 kB / 443.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004949/0.3332, allocations: 117.7 kB / 443.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.3334, allocations: 39.92 kB / 444 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004411/0.3378, allocations: 3.296 MB / 447.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.3381, allocations: 35.77 kB / 447.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3381, allocations: 8 kB / 447.3 MB, free: 6.441 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.0002149/0.3383, allocations: 160 kB / 447.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.448e-05/0.3384, allocations: 27.84 kB / 447.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.3385, allocations: 30.17 kB / 447.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3385, allocations: 8 kB / 447.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3385, allocations: 3.938 kB / 447.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.3385, allocations: 3.984 kB / 447.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.3388, allocations: 249.1 kB / 447.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3388, allocations: 0 / 447.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.642e-05/0.3389, allocations: 12 kB / 447.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003529/0.3392, allocations: 109.6 kB / 447.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3393, allocations: 7.984 kB / 447.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003756/0.343, allocations: 3.203 MB / 451.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.343, allocations: 3.938 kB / 451.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009902/0.344, allocations: 428.8 kB / 451.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.404e-05/0.3441, allocations: 23.81 kB / 451.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.3441, allocations: 7.984 kB / 451.6 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.3443, allocations: 31.92 kB / 451.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.302e-05/0.3444, allocations: 19.91 kB / 451.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.3444, allocations: 4 kB / 451.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.3446, allocations: 197.2 kB / 451.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3446, allocations: 0 / 451.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005331/0.3452, allocations: 103.8 kB / 451.9 MB, free: 1.566 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.0001403/0.3453, allocations: 103.2 kB / 452 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3464, allocations: 0.5119 MB / 452.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3464, allocations: 0 / 452.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3469, allocations: 337.7 kB / 452.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.3473, allocations: 44.59 kB / 452.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.3485, allocations: 0.5711 MB / 453.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.3486, allocations: 172.8 kB / 453.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.19e-05/0.3487, allocations: 26.28 kB / 453.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.3488, allocations: 15.44 kB / 453.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3488, allocations: 0 / 453.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of Templates: time 0.009079/0.3578, allocations: 4.066 MB / 457.7 MB, free: 11.68 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/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: 4.818953477777541]