Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 85.95 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 175.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9946/0.9946, allocations: 158.6 MB / 188.3 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 3.938 kB / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.623e-05/1.789e-05, allocations: 10.25 kB / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004475/0.004493, allocations: 5.483 MB / 257.8 MB, free: 1.711 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.006116, allocations: 1.418 MB / 259.2 MB, free: 292 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.006324, allocations: 19.94 kB / 259.2 MB, free: 272 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.006555, allocations: 162.4 kB / 259.4 MB, free: 108 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.006884, allocations: 289.4 kB / 259.6 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.007336, allocations: 363.3 kB / 260 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007875/0.008124, allocations: 1.272 MB / 261.3 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.008422, allocations: 285.4 kB / 261.5 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005914/0.009014, allocations: 0.694 MB / 262.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003609/0.009375, allocations: 426.8 kB / 262.7 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.009484, allocations: 124 kB / 262.8 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.009654, allocations: 156 kB / 262.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.009792, allocations: 255.2 kB / 263.2 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.01004, allocations: 395.1 kB / 263.6 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006007/0.01064, allocations: 0.8721 MB / 264.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.01065, allocations: 0 / 264.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01065, allocations: 4 kB / 264.4 MB, free: 10.98 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.01065, allocations: 3.938 kB / 264.4 MB, free: 10.98 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001308/0.01196, allocations: 1.341 MB / 265.8 MB, free: 9.598 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.01199, allocations: 8.031 kB / 265.8 MB, free: 9.59 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.01215, allocations: 176.3 kB / 266 MB, free: 9.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.01254, allocations: 461.9 kB / 266.4 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.01258, allocations: 58.38 kB / 266.5 MB, free: 8.879 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.992e-05/0.01267, allocations: 96.27 kB / 266.6 MB, free: 8.785 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006694/0.01334, allocations: 0.8095 MB / 267.4 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.01335, allocations: 192 / 267.4 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.311e-05/0.0134, allocations: 36.38 kB / 267.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.01342, allocations: 19.94 kB / 267.4 MB, free: 7.852 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.01379, allocations: 309.6 kB / 267.7 MB, free: 7.547 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/0.01632, allocations: 2.488 MB / 270.2 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.01672, allocations: 398.8 kB / 270.6 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.0169, allocations: 185.5 kB / 270.8 MB, free: 4.383 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.01694, allocations: 16.64 kB / 270.8 MB, free: 4.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.01696, allocations: 42.05 kB / 270.9 MB, free: 4.316 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 1.793e-06/0.01696, allocations: 0 / 270.9 MB, free: 4.316 MB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.001585/0.01855, allocations: 1.233 MB / 272.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.01858, allocations: 60.06 kB / 272.1 MB, free: 2.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.01885, allocations: 482.3 kB / 272.6 MB, free: 2.492 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.01889, allocations: 41.7 kB / 272.7 MB, free: 2.445 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.01907, allocations: 463 kB / 273.1 MB, free: 1.984 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.0192, allocations: 261.8 kB / 273.4 MB, free: 1.727 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.01934, allocations: 144.2 kB / 273.5 MB, free: 1.574 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.01949, allocations: 0.5506 MB / 274.1 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.01964, allocations: 101.9 kB / 274.2 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.01984, allocations: 263 kB / 274.4 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.02023, allocations: 426.6 kB / 274.8 MB, free: 144 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.02023, allocations: 4 kB / 274.8 MB, free: 140 kB / 250.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.000756/0.02098, allocations: 0.6446 MB / 275.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.021, allocations: 4 kB / 275.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.021, allocations: 4 kB / 275.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.0213, allocations: 143.7 kB / 275.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/0.0217, allocations: 183.8 kB / 275.8 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.02385, allocations: 2.677 MB / 278.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.02406, allocations: 27.98 kB / 278.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.02409, allocations: 23.98 kB / 278.5 MB, free: 12.31 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.02425, allocations: 200.4 kB / 278.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.02435, allocations: 95.52 kB / 278.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.251e-05/0.02443, allocations: 77.89 kB / 278.9 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.02443, allocations: 15.98 kB / 278.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.02444, allocations: 4 kB / 278.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.02445, allocations: 0 / 278.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.02485, allocations: 442 kB / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.02485, allocations: 0 / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/0.02518, allocations: 143.8 kB / 279.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002912/0.02547, allocations: 159.3 kB / 279.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.02551, allocations: 23.98 kB / 279.7 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.02728, allocations: 2.662 MB / 282.3 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.02728, allocations: 11.94 kB / 282.3 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.02842, allocations: 0.8332 MB / 283.2 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.765e-05/0.02847, allocations: 55.58 kB / 283.2 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.02853, allocations: 27.98 kB / 283.3 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.02877, allocations: 39.97 kB / 283.3 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.02884, allocations: 60.48 kB / 283.4 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.02887, allocations: 15.98 kB / 283.4 MB, free: 7.293 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001593/0.02903, allocations: 310.7 kB / 283.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.02903, allocations: 0 / 283.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004382/0.02947, allocations: 228 kB / 283.9 MB, free: 6.77 MB / 266.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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001589/0.02963, allocations: 135.1 kB / 284 MB, free: 6.629 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008679/0.0305, allocations: 0.7006 MB / 284.7 MB, free: 5.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.0305, allocations: 0 / 284.7 MB, free: 5.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005555/0.03105, allocations: 0.5293 MB / 285.3 MB, free: 5.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.03145, allocations: 126.2 kB / 285.4 MB, free: 5.238 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.03327, allocations: 1.596 MB / 287 MB, free: 3.602 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.03338, allocations: 167.1 kB / 287.1 MB, free: 3.414 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001868/0.03357, allocations: 76.84 kB / 287.2 MB, free: 3.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.03388, allocations: 226.1 kB / 287.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of SimCode: time 1.262e-06/0.03388, allocations: 0 / 287.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of Templates: time 0.01461/0.04849, allocations: 11.38 MB / 298.8 MB, free: 7.766 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0426781428977847]