Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.001331/0.001331, allocations: 116.1 kB / 21.18 MB, free: 0.5898 MB / 14.72 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.00144/0.00144, allocations: 209.9 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.5 MB / 258.1 MB, free: 8.156 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-beta.om/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.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.78 kB / 378.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3037, allocations: 53.3 MB / 432.1 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007887/0.3115, allocations: 6.135 MB / 438.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.315, allocations: 1.564 MB / 439.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000734/0.3158, allocations: 23.94 kB / 439.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004825/0.3163, allocations: 174.3 kB / 440 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007421/0.317, allocations: 289.2 kB / 440.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.318, allocations: 411.4 kB / 440.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.3197, allocations: 1.395 MB / 442 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005247/0.3202, allocations: 301.3 kB / 442.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007671/0.321, allocations: 0.4984 MB / 442.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007634/0.3218, allocations: 0.5641 MB / 443.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.3219, allocations: 136 kB / 443.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.3223, allocations: 180 kB / 443.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.3225, allocations: 275.1 kB / 444 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006063/0.3231, allocations: 0.5872 MB / 444.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001731/0.3248, allocations: 1.547 MB / 446.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3249, allocations: 0 / 446.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3249, allocations: 0 / 446.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.3249, allocations: 0 / 446.1 MB, free: 9.246 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002957/0.3278, allocations: 1.413 MB / 447.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3279, allocations: 12.03 kB / 447.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/0.3283, allocations: 128.2 kB / 447.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009088/0.3292, allocations: 0.5621 MB / 448.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.3292, allocations: 66.38 kB / 448.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.3294, allocations: 92.36 kB / 448.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.3311, allocations: 0.8548 MB / 449.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.3311, allocations: 4 kB / 449.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.109e-05/0.3312, allocations: 36 kB / 449.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.3312, allocations: 20 kB / 449.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.3329, allocations: 0.8511 MB / 450.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005945/0.3389, allocations: 3.231 MB / 453.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3401, allocations: 0.6214 MB / 454 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007292/0.3408, allocations: 395.1 kB / 454.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-05/0.3409, allocations: 8.562 kB / 454.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.3409, allocations: 47.11 kB / 454.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.896e-06/0.3409, allocations: 0 / 454.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004921/0.3458, allocations: 2.265 MB / 456.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.3459, allocations: 64.05 kB / 456.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008056/0.3467, allocations: 0.6096 MB / 457.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.7e-05/0.3468, allocations: 41.64 kB / 457.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/0.3471, allocations: 456.3 kB / 457.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.3474, allocations: 265.7 kB / 458.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.3477, allocations: 150.5 kB / 458.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000239/0.3479, allocations: 386.8 kB / 458.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006822/0.3486, allocations: 329.9 kB / 459 MB, free: 12.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008124/0.3494, allocations: 472.6 kB / 459.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.3509, allocations: 0.8047 MB / 460.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/0.3509, allocations: 4 kB / 460.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002293/0.3532, allocations: 1.115 MB / 461.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3532, allocations: 4 kB / 461.3 MB, free: 9.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3532, allocations: 4 kB / 461.3 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005833/0.3538, allocations: 191.8 kB / 461.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009054/0.3547, allocations: 195.7 kB / 461.7 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004169/0.3589, allocations: 2.889 MB / 464.6 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007479/0.3596, allocations: 40.03 kB / 464.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.3597, allocations: 35.98 kB / 464.7 MB, free: 6.066 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004063/0.3601, allocations: 221.7 kB / 464.9 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.3603, allocations: 91.42 kB / 465 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.3604, allocations: 95.27 kB / 465.1 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3604, allocations: 8 kB / 465.1 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/0.3605, allocations: 4 kB / 465.1 MB, free: 5.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3605, allocations: 3.984 kB / 465.1 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.3616, allocations: 0.8925 MB / 466 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3617, allocations: 3.938 kB / 466 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.3624, allocations: 147.8 kB / 466.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005321/0.3629, allocations: 176.7 kB / 466.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.363, allocations: 15.98 kB / 466.3 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004024/0.367, allocations: 2.912 MB / 469.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.367, allocations: 0 / 469.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/0.3698, allocations: 1.431 MB / 470.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.3701, allocations: 148.6 kB / 470.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.3702, allocations: 16 kB / 470.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.3709, allocations: 51.95 kB / 470.9 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.371, allocations: 52.58 kB / 470.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.616e-05/0.3711, allocations: 23.98 kB / 471 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005612/0.3716, allocations: 427.1 kB / 471.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3716, allocations: 0 / 471.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00084/0.3725, allocations: 244 kB / 471.6 MB, free: 14.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002783/0.3727, allocations: 135.2 kB / 471.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.3751, allocations: 0.994 MB / 472.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3751, allocations: 0 / 472.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.3765, allocations: 0.6197 MB / 473.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.3772, allocations: 143.1 kB / 473.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.3808, allocations: 2.066 MB / 475.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006796/0.3815, allocations: 0.9814 MB / 476.5 MB, free: 9.867 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.3818, allocations: 67.41 kB / 476.6 MB, free: 9.801 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3818, allocations: 0 / 476.6 MB, free: 9.801 MB / 382.1 MB Notification: Performance of Templates: time 0.02144/0.4032, allocations: 15.05 MB / 491.7 MB, free: 10.8 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[5060]=0.000000 " [Timeout remaining time 660] "" Variables in the reference:time,C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v Variables in the result:C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v,time [Calling sys.exit(0), Time elapsed: 8.635359589010477]