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.001855/0.001855, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001435/0.001435, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 8.023 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=5003,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=5003,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.001921/0.001921, allocations: 68.77 kB / 379.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2603, allocations: 53.37 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008997/0.2693, allocations: 6.125 MB / 438.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.2732, allocations: 1.564 MB / 440.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.2742, allocations: 19.94 kB / 440.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006397/0.2749, allocations: 174.2 kB / 440.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008548/0.2757, allocations: 297.3 kB / 440.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.2769, allocations: 415.3 kB / 441 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.2786, allocations: 1.399 MB / 442.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000486/0.2791, allocations: 293.7 kB / 442.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008198/0.2799, allocations: 0.5101 MB / 443.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007796/0.2807, allocations: 0.5679 MB / 443.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.2808, allocations: 136 kB / 443.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.2812, allocations: 184 kB / 444.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002431/0.2814, allocations: 279.1 kB / 444.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005609/0.282, allocations: 0.5833 MB / 444.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001784/0.2837, allocations: 1.547 MB / 446.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.2838, allocations: 0 / 446.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2838, allocations: 4 kB / 446.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.2838, allocations: 0 / 446.5 MB, free: 8.824 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.002843/0.2866, allocations: 1.336 MB / 447.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2867, allocations: 8.031 kB / 447.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004088/0.2871, allocations: 136.2 kB / 448 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009647/0.288, allocations: 0.4978 MB / 448.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/0.2881, allocations: 62.38 kB / 448.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.2882, allocations: 88.38 kB / 448.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.2899, allocations: 0.8549 MB / 449.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.29, allocations: 4 kB / 449.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.383e-05/0.29, allocations: 36 kB / 449.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.997e-05/0.2901, allocations: 20 kB / 449.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.2918, allocations: 0.8589 MB / 450.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005846/0.2977, allocations: 3.157 MB / 453.5 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.2989, allocations: 0.6219 MB / 454.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007891/0.2997, allocations: 395.2 kB / 454.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.2998, allocations: 12.64 kB / 454.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.2998, allocations: 47.22 kB / 454.6 MB, free: 500 kB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.866e-06/0.2998, allocations: 0 / 454.6 MB, free: 500 kB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004932/0.3048, allocations: 2.194 MB / 456.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.3048, allocations: 60.06 kB / 456.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008474/0.3057, allocations: 0.6057 MB / 457.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.3057, allocations: 41.7 kB / 457.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.3061, allocations: 456.3 kB / 457.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.3064, allocations: 265.7 kB / 458.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002641/0.3066, allocations: 158.5 kB / 458.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.3068, allocations: 386.8 kB / 458.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006831/0.3075, allocations: 329.8 kB / 459.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007926/0.3083, allocations: 464.6 kB / 459.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.3098, allocations: 0.8086 MB / 460.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3098, allocations: 8 kB / 460.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002265/0.3121, allocations: 1.111 MB / 461.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3121, allocations: 4 kB / 461.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3121, allocations: 8.062 kB / 461.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.3127, allocations: 187.5 kB / 461.6 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008785/0.3136, allocations: 203.7 kB / 461.8 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004067/0.3176, allocations: 2.788 MB / 464.6 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.3183, allocations: 32.05 kB / 464.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.495e-05/0.3183, allocations: 31.98 kB / 464.7 MB, free: 6.105 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.0003849/0.3187, allocations: 229.7 kB / 464.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.3189, allocations: 87.42 kB / 465 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.319, allocations: 99.25 kB / 465.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3191, allocations: 8 kB / 465.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.3191, allocations: 4 kB / 465.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3191, allocations: 3.984 kB / 465.1 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.3202, allocations: 0.8603 MB / 466 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3202, allocations: 7.938 kB / 466 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007231/0.3209, allocations: 147.8 kB / 466.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005152/0.3214, allocations: 180.7 kB / 466.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.719e-05/0.3215, allocations: 19.98 kB / 466.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00398/0.3255, allocations: 2.783 MB / 469.1 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3255, allocations: 128 / 469.1 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.3284, allocations: 1.435 MB / 470.5 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.3286, allocations: 79.52 kB / 470.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3287, allocations: 15.94 kB / 470.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006093/0.3293, allocations: 55.91 kB / 470.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3295, allocations: 56.55 kB / 470.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.3295, allocations: 23.98 kB / 470.8 MB, free: 15.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005919/0.3301, allocations: 423.1 kB / 471.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3301, allocations: 0 / 471.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000866/0.331, allocations: 247.9 kB / 471.4 MB, free: 15.19 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.0002583/0.3312, allocations: 134.5 kB / 471.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.3335, allocations: 0.9869 MB / 472.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.3335, allocations: 4 kB / 472.5 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.3348, allocations: 0.6151 MB / 473.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006961/0.3355, allocations: 151 kB / 473.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003356/0.3389, allocations: 2.019 MB / 475.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006561/0.3395, allocations: 0.9814 MB / 476.3 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003646/0.3399, allocations: 93.45 kB / 476.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.3401, allocations: 55.42 kB / 476.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3401, allocations: 0 / 476.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02128/0.3613, allocations: 11.84 MB / 488.3 MB, free: 14.35 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.974267702549696]