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.0008223/0.0008223, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001204/0.002026, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006578/0.0006578, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009066/0.001564, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.846/0.846, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.169/1.015, allocations: 52.47 MB / 238.5 MB, free: 7.652 MB / 234.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.583e-06/1.583e-06, allocations: 0 / 239.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175e-05/1.334e-05, allocations: 2.969 kB / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004391/0.004405, allocations: 5.867 MB / 245.6 MB, free: 484 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002689/0.007094, allocations: 1.575 MB / 247.2 MB, free: 14.9 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.007566, allocations: 25.84 kB / 247.2 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.007822, allocations: 174.3 kB / 247.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004429/0.008265, allocations: 315.6 kB / 247.7 MB, free: 14.39 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000585/0.00885, allocations: 413.4 kB / 248.1 MB, free: 13.99 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.00991, allocations: 1.431 MB / 249.6 MB, free: 12.56 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.01023, allocations: 289.7 kB / 249.8 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009067/0.01114, allocations: 0.8567 MB / 250.7 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004624/0.0116, allocations: 455.7 kB / 251.1 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.01174, allocations: 136 kB / 251.3 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/0.01199, allocations: 176.9 kB / 251.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.01211, allocations: 207.4 kB / 251.6 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002684/0.01238, allocations: 351.4 kB / 252 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006563/0.01304, allocations: 0.8457 MB / 252.8 MB, free: 9.246 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.01305, allocations: 0 / 252.8 MB, free: 9.246 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.01305, allocations: 0.6875 kB / 252.8 MB, free: 9.246 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.01306, allocations: 0 / 252.8 MB, free: 9.246 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.00142/0.01448, allocations: 1.531 MB / 254.4 MB, free: 7.691 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.01451, allocations: 12.03 kB / 254.4 MB, free: 7.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.01466, allocations: 148.8 kB / 254.5 MB, free: 7.535 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.01506, allocations: 377.2 kB / 254.9 MB, free: 7.137 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.0151, allocations: 66.38 kB / 255 MB, free: 7.074 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.209e-05/0.01519, allocations: 100.4 kB / 255.1 MB, free: 6.977 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000631/0.01582, allocations: 0.806 MB / 255.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.01584, allocations: 192 / 255.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.01588, allocations: 36.38 kB / 255.9 MB, free: 6.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.0159, allocations: 23.94 kB / 255.9 MB, free: 6.039 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003352/0.01623, allocations: 273.8 kB / 256.2 MB, free: 5.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.01864, allocations: 2.075 MB / 258.3 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.01901, allocations: 353.7 kB / 258.6 MB, free: 3.246 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.01917, allocations: 183.2 kB / 258.8 MB, free: 3.062 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.01921, allocations: 12.66 kB / 258.8 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.01924, allocations: 43.22 kB / 258.8 MB, free: 2.996 MB / 250.7 MB Notification: Performance of pre-optimization done (n=69): time 1.843e-06/0.01924, allocations: 0 / 258.8 MB, free: 2.996 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.002392/0.02163, allocations: 1.606 MB / 260.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.02166, allocations: 60.06 kB / 260.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.02194, allocations: 491 kB / 261 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.02197, allocations: 41.7 kB / 261 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.02212, allocations: 385.4 kB / 261.4 MB, free: 356 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.02224, allocations: 281.6 kB / 261.7 MB, free: 72 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.02239, allocations: 146.5 kB / 261.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.0225, allocations: 394.5 kB / 262.2 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.02262, allocations: 89.95 kB / 262.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.02281, allocations: 240.5 kB / 262.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.02318, allocations: 435.9 kB / 263 MB, free: 14.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.02318, allocations: 0 / 263 MB, free: 14.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006109/0.02379, allocations: 0.5428 MB / 263.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.02381, allocations: 11.94 kB / 263.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.02382, allocations: 4 kB / 263.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.02411, allocations: 143.1 kB / 263.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.02461, allocations: 249.6 kB / 263.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.02612, allocations: 1.966 MB / 265.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002214/0.02634, allocations: 39.86 kB / 265.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.02637, allocations: 31.98 kB / 265.9 MB, free: 11.62 MB / 266.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.0001414/0.02651, allocations: 149.7 kB / 266.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.282e-05/0.02659, allocations: 71.92 kB / 266.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.839e-05/0.02668, allocations: 86.59 kB / 266.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.02668, allocations: 8 kB / 266.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.02669, allocations: 4 kB / 266.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.0267, allocations: 3.984 kB / 266.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004066/0.02711, allocations: 446.6 kB / 266.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.02711, allocations: 4 kB / 266.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003897/0.0275, allocations: 175.7 kB / 266.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.571e-05/0.02755, allocations: 63.52 kB / 266.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002661/0.02782, allocations: 146.7 kB / 267.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.02785, allocations: 19.98 kB / 267.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.02924, allocations: 1.972 MB / 269.1 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.02924, allocations: 0 / 269.1 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007114/0.02995, allocations: 0.6977 MB / 269.8 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.03, allocations: 16 kB / 269.8 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.03022, allocations: 47.97 kB / 269.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.0303, allocations: 52.55 kB / 269.9 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.03032, allocations: 19.98 kB / 269.9 MB, free: 7.523 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001388/0.03046, allocations: 216.4 kB / 270.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03046, allocations: 0 / 270.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.03087, allocations: 243.9 kB / 270.3 MB, free: 7.074 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.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.0001636/0.03103, allocations: 128 kB / 270.5 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007299/0.03176, allocations: 0.6308 MB / 271.1 MB, free: 6.301 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.095e-05/0.03178, allocations: 16.64 kB / 271.1 MB, free: 6.285 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.03228, allocations: 0.4971 MB / 271.6 MB, free: 5.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007067/0.03299, allocations: 1.313 MB / 272.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.03776, allocations: 1.58 MB / 274.5 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.03789, allocations: 179.5 kB / 274.7 MB, free: 2.387 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002276/0.03812, allocations: 89.45 kB / 274.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.03846, allocations: 225.2 kB / 275 MB, free: 2.074 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.03846, allocations: 0 / 275 MB, free: 2.074 MB / 266.7 MB Notification: Performance of Templates: time 0.01574/0.0542, allocations: 13.24 MB / 288.2 MB, free: 5.055 MB / 282.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.763392126187682]