Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008164/0.0008164, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003701/0.003701, allocations: 148.5 kB / 24.68 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8042/0.8042, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 319.7 MB, free: 5.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.767e-05/1.898e-05, allocations: 2.281 kB / 319.7 MB, free: 5.684 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.003988/0.004007, allocations: 5.327 MB / 325 MB, free: 336 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.005526, allocations: 1.486 MB / 326.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002222/0.005748, allocations: 23.88 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.005984, allocations: 174.3 kB / 326.7 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.00629, allocations: 317 kB / 327 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.006778, allocations: 407.3 kB / 327.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007742/0.007552, allocations: 1.453 MB / 328.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/0.007919, allocations: 277.7 kB / 329.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.008447, allocations: 0.7526 MB / 329.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.008776, allocations: 438.8 kB / 330.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.008883, allocations: 136 kB / 330.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.009048, allocations: 175.9 kB / 330.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.009177, allocations: 271.1 kB / 330.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.009409, allocations: 423 kB / 331.3 MB, free: 10 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009406/0.01035, allocations: 1.616 MB / 332.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.01035, allocations: 0 / 332.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.01035, allocations: 3.984 kB / 332.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.01036, allocations: 3.938 kB / 332.9 MB, free: 8.375 MB / 298.7 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.001436/0.0118, allocations: 1.322 MB / 334.3 MB, free: 7.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.01183, allocations: 8.922 kB / 334.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.01196, allocations: 120.2 kB / 334.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.01245, allocations: 497.1 kB / 334.9 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.01249, allocations: 70.36 kB / 334.9 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.255e-05/0.01258, allocations: 92.33 kB / 335 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.0136, allocations: 1.106 MB / 336.1 MB, free: 5.055 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.01361, allocations: 192 / 336.1 MB, free: 5.055 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.01367, allocations: 36.38 kB / 336.2 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.01368, allocations: 23.94 kB / 336.2 MB, free: 4.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.01469, allocations: 0.855 MB / 337 MB, free: 4.137 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.01764, allocations: 2.766 MB / 339.8 MB, free: 1.266 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007158/0.01835, allocations: 0.6296 MB / 340.4 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.01876, allocations: 398.4 kB / 340.8 MB, free: 240 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.0188, allocations: 12.66 kB / 340.8 MB, free: 224 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.01882, allocations: 47.14 kB / 340.9 MB, free: 168 kB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 1.803e-06/0.01882, allocations: 0 / 340.9 MB, free: 168 kB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.002641/0.02146, allocations: 2.181 MB / 343.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.02149, allocations: 60.06 kB / 343.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003865/0.02188, allocations: 0.5536 MB / 343.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.02192, allocations: 45.7 kB / 343.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.02211, allocations: 452.3 kB / 344.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.02223, allocations: 273.7 kB / 344.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.02238, allocations: 150.5 kB / 344.6 MB, free: 12.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.02249, allocations: 382.8 kB / 345 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.02287, allocations: 321.9 kB / 345.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.02333, allocations: 472.6 kB / 345.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008622/0.02419, allocations: 0.8124 MB / 346.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.0242, allocations: 0 / 346.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001248/0.02544, allocations: 1.099 MB / 347.6 MB, free: 9.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.02546, allocations: 8 kB / 347.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.02547, allocations: 4 kB / 347.7 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000331/0.0258, allocations: 195.5 kB / 347.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004251/0.02622, allocations: 199.7 kB / 348 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.02854, allocations: 2.708 MB / 350.7 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.0288, allocations: 48.09 kB / 350.8 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.02884, allocations: 32 kB / 350.8 MB, free: 5.93 MB / 314.7 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.000221/0.02906, allocations: 233.7 kB / 351.1 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-05/0.02913, allocations: 75.53 kB / 351.1 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.02923, allocations: 94.58 kB / 351.2 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.02924, allocations: 4 kB / 351.2 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.02924, allocations: 4 kB / 351.2 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.02925, allocations: 7.922 kB / 351.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005132/0.02976, allocations: 0.6114 MB / 351.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02977, allocations: 0 / 351.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.03012, allocations: 151.8 kB / 352 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002843/0.0304, allocations: 179.3 kB / 352.2 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.03044, allocations: 19.98 kB / 352.2 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.03255, allocations: 2.739 MB / 354.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.03255, allocations: 0 / 354.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.03412, allocations: 1.424 MB / 356.4 MB, free: 252 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.03417, allocations: 63.52 kB / 356.4 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.426e-05/0.03423, allocations: 16 kB / 356.4 MB, free: 172 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.03449, allocations: 51.95 kB / 356.5 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-05/0.03457, allocations: 56.55 kB / 356.5 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.0346, allocations: 27.98 kB / 356.6 MB, free: 36 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.03489, allocations: 378.8 kB / 356.9 MB, free: 15.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03489, allocations: 0 / 356.9 MB, free: 15.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004737/0.03536, allocations: 243.9 kB / 357.2 MB, free: 15.43 MB / 330.7 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.0001704/0.03553, allocations: 139.1 kB / 357.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.03679, allocations: 0.994 MB / 358.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.03679, allocations: 0 / 358.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006886/0.03748, allocations: 0.6081 MB / 358.9 MB, free: 13.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.03787, allocations: 126.4 kB / 359 MB, free: 13.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.03973, allocations: 1.843 MB / 360.9 MB, free: 11.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.03996, allocations: 398.8 kB / 361.3 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.04012, allocations: 68.47 kB / 361.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.04012, allocations: 0 / 361.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of Templates: time 0.01115/0.05127, allocations: 15.08 MB / 376.4 MB, free: 12.11 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.812395646236837]