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.001754/0.001754, allocations: 112.5 kB / 18.45 MB, free: 4.605 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.002329/0.002329, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.597/1.597, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.001957/0.001957, allocations: 43.94 kB / 374.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1133, allocations: 53.33 MB / 427.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005314/0.1186, allocations: 3.4 MB / 430.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2213/0.3399, allocations: 0.8684 MB / 431.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004759/0.3404, allocations: 10.72 kB / 431.8 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.3406, allocations: 69.75 kB / 431.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.3409, allocations: 120.1 kB / 432 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.3414, allocations: 148.9 kB / 432.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005468/0.3419, allocations: 0.4919 MB / 432.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.3422, allocations: 124.2 kB / 432.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002974/0.3425, allocations: 196.2 kB / 432.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.3427, allocations: 201.6 kB / 433.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.28e-05/0.3428, allocations: 51.34 kB / 433.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.3429, allocations: 54.48 kB / 433.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.567e-05/0.3429, allocations: 99.8 kB / 433.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.3431, allocations: 222 kB / 433.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.3436, allocations: 0.5712 MB / 434.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3436, allocations: 0 / 434.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3436, allocations: 0 / 434.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3436, allocations: 0 / 434.1 MB, free: 7.844 MB / 350.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.001043/0.3446, allocations: 0.7139 MB / 434.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3447, allocations: 9.812 kB / 434.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.3449, allocations: 53.12 kB / 434.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.3453, allocations: 328.7 kB / 435.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.3453, allocations: 28.62 kB / 435.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.3454, allocations: 32.31 kB / 435.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000707/0.3461, allocations: 392.9 kB / 435.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3461, allocations: 1.703 kB / 435.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.3461, allocations: 15 kB / 435.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.3461, allocations: 8.5 kB / 435.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006348/0.3468, allocations: 301.9 kB / 436 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.3489, allocations: 1.443 MB / 437.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.3495, allocations: 224.7 kB / 437.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.3497, allocations: 92.03 kB / 437.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.3497, allocations: 4.906 kB / 437.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.3498, allocations: 32.7 kB / 437.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.964e-06/0.3498, allocations: 0 / 437.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.00225/0.352, allocations: 0.7514 MB / 438.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.3521, allocations: 54.27 kB / 438.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.3524, allocations: 320.3 kB / 438.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.3524, allocations: 27.86 kB / 438.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.3525, allocations: 235.2 kB / 439.1 MB, free: 5.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.3526, allocations: 61.5 kB / 439.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.498e-05/0.3527, allocations: 47.53 kB / 439.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.3527, allocations: 337.4 kB / 439.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.3529, allocations: 84.02 kB / 439.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002382/0.3532, allocations: 167.3 kB / 439.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.3536, allocations: 255.1 kB / 440.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3536, allocations: 1.281 kB / 440.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00101/0.3546, allocations: 425 kB / 440.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3547, allocations: 6.031 kB / 440.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.3547, allocations: 2.281 kB / 440.5 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004981/0.3552, allocations: 117.3 kB / 440.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.3553, allocations: 39.89 kB / 440.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003897/0.3592, allocations: 3.564 MB / 444.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.3596, allocations: 37.09 kB / 444.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3596, allocations: 13.3 kB / 444.3 MB, free: 1.246 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.0002208/0.3598, allocations: 164.9 kB / 444.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.339e-05/0.3599, allocations: 30.09 kB / 444.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.927e-05/0.3599, allocations: 32.72 kB / 444.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3599, allocations: 2.5 kB / 444.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.3599, allocations: 0.9375 kB / 444.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3599, allocations: 1.922 kB / 444.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.3604, allocations: 363 kB / 444.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3604, allocations: 4.5 kB / 444.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.563e-05/0.3605, allocations: 14.91 kB / 444.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.3609, allocations: 113.4 kB / 445 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.3609, allocations: 12.98 kB / 445 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004044/0.3649, allocations: 3.467 MB / 448.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3649, allocations: 0.5625 kB / 448.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.366, allocations: 432.7 kB / 448.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.3661, allocations: 111 kB / 449 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.3661, allocations: 5.875 kB / 449 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3664, allocations: 21.77 kB / 449 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.3664, allocations: 15.84 kB / 449 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.3664, allocations: 7.828 kB / 449 MB, free: 13.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002885/0.3667, allocations: 226 kB / 449.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3667, allocations: 9 kB / 449.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006606/0.3674, allocations: 97.78 kB / 449.4 MB, free: 13.07 MB / 366.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.0001859/0.3676, allocations: 107.8 kB / 449.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3688, allocations: 0.5099 MB / 450 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3689, allocations: 0 / 450 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005307/0.3694, allocations: 335.9 kB / 450.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.3698, allocations: 53.31 kB / 450.4 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.3711, allocations: 0.6026 MB / 451 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.3715, allocations: 0.782 MB / 451.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.43e-05/0.3716, allocations: 21.72 kB / 451.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3716, allocations: 0 / 451.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of Templates: time 0.01081/0.3824, allocations: 6.796 MB / 458.6 MB, free: 9.312 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/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: 8.055718122021062]