Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001927/0.001927, allocations: 91.61 kB / 20.96 MB, free: 3.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002097/0.002097, allocations: 156.9 kB / 24.27 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 177 MB / 204.4 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.75e-05/3.953e-05, allocations: 2.312 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005898/0.005937, allocations: 3.356 MB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.00799, allocations: 0.8219 MB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.008239, allocations: 11.94 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.008502, allocations: 71.3 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.008811, allocations: 138.8 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.009201, allocations: 127.7 kB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006121/0.009813, allocations: 0.5094 MB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.01008, allocations: 125.3 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004585/0.01054, allocations: 287.4 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.01082, allocations: 163.5 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.936e-05/0.0109, allocations: 48 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.01101, allocations: 55.94 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.01112, allocations: 107.6 kB / 278 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.01131, allocations: 151.7 kB / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007873/0.0121, allocations: 0.5919 MB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.0121, allocations: 3.938 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.01211, allocations: 0 / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.01211, allocations: 0 / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001294/0.01341, allocations: 0.7531 MB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.01345, allocations: 15.98 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.0137, allocations: 84.64 kB / 279.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.01418, allocations: 291.3 kB / 279.9 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.01422, allocations: 25.38 kB / 279.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.01427, allocations: 36.38 kB / 280 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007258/0.015, allocations: 459.5 kB / 280.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.01501, allocations: 3.938 kB / 280.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.022e-05/0.01505, allocations: 16 kB / 280.4 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.01506, allocations: 8 kB / 280.4 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005467/0.01561, allocations: 267.9 kB / 280.7 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.01817, allocations: 1.418 MB / 282.1 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.01867, allocations: 207.3 kB / 282.3 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.01884, allocations: 75.67 kB / 282.4 MB, free: 7.379 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.01888, allocations: 4 kB / 282.4 MB, free: 7.375 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/0.01892, allocations: 41.39 kB / 282.4 MB, free: 7.324 MB / 266.7 MB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.01893, allocations: 0 / 282.4 MB, free: 7.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=19): time 0.001477/0.0204, allocations: 436 kB / 282.9 MB, free: 6.887 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.02045, allocations: 55.41 kB / 282.9 MB, free: 6.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.02092, allocations: 388.2 kB / 283.3 MB, free: 6.426 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.02094, allocations: 29.64 kB / 283.3 MB, free: 6.391 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.02119, allocations: 302.8 kB / 283.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.464e-05/0.02127, allocations: 63.48 kB / 283.7 MB, free: 6.027 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.02139, allocations: 71.31 kB / 283.8 MB, free: 5.949 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003254/0.02171, allocations: 0.5274 MB / 284.3 MB, free: 5.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.02187, allocations: 63.97 kB / 284.4 MB, free: 5.348 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.02213, allocations: 176.8 kB / 284.5 MB, free: 5.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.02255, allocations: 254.9 kB / 284.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.02255, allocations: 4 kB / 284.8 MB, free: 4.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007954/0.02335, allocations: 369.1 kB / 285.1 MB, free: 4.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.02336, allocations: 4 kB / 285.1 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.02337, allocations: 4 kB / 285.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006702/0.02404, allocations: 139.5 kB / 285.3 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.02423, allocations: 39.92 kB / 285.3 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.02894, allocations: 4.325 MB / 289.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.02918, allocations: 35.78 kB / 289.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.0292, allocations: 8 kB / 289.7 MB, free: 15.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satNeg,feedback.opAmp.satPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002595/0.02946, allocations: 208.5 kB / 289.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.02953, allocations: 27.86 kB / 289.9 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.057e-05/0.0296, allocations: 34.11 kB / 290 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.0296, allocations: 0 / 290 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.02961, allocations: 4 kB / 290 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.02962, allocations: 3.938 kB / 290 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004796/0.0301, allocations: 324.5 kB / 290.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.0301, allocations: 4 kB / 290.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.874e-05/0.03019, allocations: 19.92 kB / 290.3 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005644/0.03075, allocations: 135.2 kB / 290.4 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.03077, allocations: 8 kB / 290.4 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004715/0.03548, allocations: 4.31 MB / 294.8 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.03548, allocations: 0 / 294.8 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007495/0.03623, allocations: 430.9 kB / 295.2 MB, free: 9.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.0363, allocations: 35.73 kB / 295.2 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.03633, allocations: 4.031 kB / 295.2 MB, free: 9.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.03654, allocations: 23.98 kB / 295.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.015e-05/0.03663, allocations: 23.89 kB / 295.3 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.03665, allocations: 4 kB / 295.3 MB, free: 9.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003146/0.03696, allocations: 261 kB / 295.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03696, allocations: 0 / 295.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005749/0.03754, allocations: 111.8 kB / 295.6 MB, free: 9.387 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (feedback.opAmp.satPos,feedback.opAmp.satNeg) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001695/0.03771, allocations: 107.2 kB / 295.7 MB, free: 9.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009245/0.03863, allocations: 0.5529 MB / 296.3 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.03863, allocations: 0 / 296.3 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005903/0.03922, allocations: 475 kB / 296.7 MB, free: 8.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.03962, allocations: 55.72 kB / 296.8 MB, free: 8.129 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.04085, allocations: 0.5961 MB / 297.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.04107, allocations: 173.4 kB / 297.6 MB, free: 7.312 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.371e-05/0.04116, allocations: 26.28 kB / 297.6 MB, free: 7.289 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.779e-05/0.04122, allocations: 20.5 kB / 297.6 MB, free: 7.27 MB / 282.7 MB Notification: Performance of SimCode: time 7.72e-07/0.04122, allocations: 0 / 297.6 MB, free: 7.27 MB / 282.7 MB Notification: Performance of Templates: time 0.009881/0.0511, allocations: 3.912 MB / 301.5 MB, free: 3.406 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,vOut.v Variables in the result:Vin,f,feedback.R1,feedback.R3,feedback.V0,feedback.Vns,feedback.Vps,feedback.k,feedback.opAmp.Tau,feedback.opAmp.V0,feedback.opAmp.Vns,feedback.opAmp.Vps,feedback.opAmp.initOpAmp,feedback.opAmp.useFirstOrder,feedback.opAmp.useSupply,feedback.r1.R,feedback.r1.T,feedback.r1.T_ref,feedback.r1.alpha,feedback.r2.R,feedback.r2.T,feedback.r2.T_ref,feedback.r2.alpha,feedback.r3.R,feedback.r3.T,feedback.r3.T_ref,feedback.r3.alpha,feedback.r4.R,feedback.r4.T,feedback.r4.T_ref,feedback.r4.alpha,feedback.v2,time,vIn1.V,vIn1.f,vIn1.offset,vIn1.phase,vIn1.signalSource.amplitude,vIn1.signalSource.continuous,vIn1.signalSource.f,vIn1.signalSource.offset,vIn1.signalSource.phase,vIn1.signalSource.startTime,vIn1.startTime,vIn2.V,vOut.v [Calling sys.exit(0), Time elapsed: 4.634557144949213]