Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001584/0.001584, allocations: 116.8 kB / 19.17 MB, free: 3.895 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.001752/0.001752, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 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.495/1.495, allocations: 230.2 MB / 255.1 MB, free: 15.25 MB / 206.1 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.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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.89 kB / 374.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1185, allocations: 53.32 MB / 427.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2038/0.3223, allocations: 6.096 MB / 434 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002679/0.325, allocations: 1.563 MB / 435.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004447/0.3254, allocations: 14.69 kB / 435.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.3257, allocations: 181.7 kB / 435.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005137/0.3263, allocations: 294.9 kB / 436 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.327, allocations: 418.2 kB / 436.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.3282, allocations: 1.393 MB / 437.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000432/0.3286, allocations: 295.9 kB / 438.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007027/0.3293, allocations: 0.4944 MB / 438.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006971/0.33, allocations: 0.5722 MB / 439.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001946/0.3302, allocations: 134.5 kB / 439.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003659/0.3305, allocations: 179.8 kB / 439.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001995/0.3307, allocations: 278.6 kB / 439.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005059/0.3313, allocations: 0.5802 MB / 440.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001766/0.333, allocations: 1.551 MB / 441.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.333, allocations: 0.75 kB / 441.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.333, allocations: 5.094 kB / 441.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.069e-05/0.3331, allocations: 0.5 kB / 441.9 MB, free: 5.586 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.002811/0.3359, allocations: 1.408 MB / 443.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3359, allocations: 9.531 kB / 443.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.3363, allocations: 130.9 kB / 443.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007803/0.3371, allocations: 0.5639 MB / 444 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.3371, allocations: 65.19 kB / 444 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.3373, allocations: 91.03 kB / 444.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.339, allocations: 0.8526 MB / 445 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.339, allocations: 1.984 kB / 445 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.414e-05/0.3391, allocations: 40.38 kB / 445 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.3391, allocations: 21.06 kB / 445 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.3407, allocations: 0.852 MB / 445.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.3462, allocations: 3.224 MB / 449.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.3473, allocations: 0.6284 MB / 449.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.3479, allocations: 393.8 kB / 450.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.348, allocations: 15.19 kB / 450.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.348, allocations: 40.52 kB / 450.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.335e-06/0.348, allocations: 0 / 450.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004559/0.3526, allocations: 2.275 MB / 452.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.3526, allocations: 59.41 kB / 452.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008475/0.3535, allocations: 0.6083 MB / 453.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.327e-05/0.3536, allocations: 42.05 kB / 453.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.3539, allocations: 449.4 kB / 453.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.3542, allocations: 268 kB / 453.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.3544, allocations: 150.3 kB / 454 MB, free: 14.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002089/0.3546, allocations: 385 kB / 454.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006724/0.3553, allocations: 322.2 kB / 454.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008353/0.3562, allocations: 473.6 kB / 455.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.3577, allocations: 0.8074 MB / 456 MB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3577, allocations: 1.562 kB / 456 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002328/0.36, allocations: 1.117 MB / 457.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.36, allocations: 6.625 kB / 457.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.36, allocations: 3.75 kB / 457.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005671/0.3606, allocations: 189.7 kB / 457.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/0.3615, allocations: 202 kB / 457.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005189/0.3667, allocations: 2.884 MB / 460.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.368, allocations: 34.22 kB / 460.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.3681, allocations: 36.61 kB / 460.4 MB, free: 10.78 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.0006393/0.3687, allocations: 232.7 kB / 460.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002569/0.369, allocations: 87.8 kB / 460.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.3693, allocations: 95.78 kB / 460.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.3693, allocations: 10.5 kB / 460.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.3693, allocations: 2.844 kB / 460.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.3693, allocations: 4.828 kB / 460.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.3712, allocations: 0.8885 MB / 461.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.3712, allocations: 3.938 kB / 461.8 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.3725, allocations: 147.2 kB / 461.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008769/0.3733, allocations: 177.7 kB / 462.1 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.3734, allocations: 23.27 kB / 462.1 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006228/0.3797, allocations: 2.894 MB / 465 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3797, allocations: 0 / 465 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003064/0.3827, allocations: 1.432 MB / 466.4 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.383, allocations: 148.1 kB / 466.6 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.3831, allocations: 19.53 kB / 466.6 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006378/0.3838, allocations: 49.05 kB / 466.6 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3839, allocations: 53.23 kB / 466.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.17e-05/0.384, allocations: 26.48 kB / 466.7 MB, free: 6.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005591/0.3845, allocations: 425.7 kB / 467.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3845, allocations: 0 / 467.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008873/0.3854, allocations: 238.7 kB / 467.4 MB, free: 5.883 MB / 366.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.0002578/0.3857, allocations: 143.9 kB / 467.5 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002297/0.388, allocations: 0.9997 MB / 468.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.388, allocations: 1.344 kB / 468.5 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001369/0.3893, allocations: 0.6185 MB / 469.1 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007657/0.3901, allocations: 143.6 kB / 469.3 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003449/0.3935, allocations: 2.074 MB / 471.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006344/0.3942, allocations: 0.9767 MB / 472.3 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.3945, allocations: 63 kB / 472.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3945, allocations: 0 / 472.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of Templates: time 0.02192/0.4164, allocations: 15.04 MB / 487.4 MB, free: 4.68 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.505787811009213]