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.001666/0.001667, allocations: 115.4 kB / 18.41 MB, free: 4.668 MB / 14.72 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.001883/0.001883, allocations: 192.3 kB / 21.35 MB, free: 1.734 MB / 14.72 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 1.723/1.723, allocations: 222.9 MB / 247.1 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001562/0.001563, allocations: 47.92 kB / 358.7 MB, free: 8.332 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09606, allocations: 49.44 MB / 408.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007652/0.1038, allocations: 6.07 MB / 414.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.107, allocations: 1.513 MB / 415.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007319/0.1077, allocations: 19.94 kB / 415.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005232/0.1083, allocations: 174.2 kB / 415.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008191/0.1091, allocations: 289.3 kB / 416.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009148/0.1101, allocations: 407.4 kB / 416.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001632/0.1117, allocations: 1.391 MB / 418 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006127/0.1123, allocations: 429.2 kB / 418.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007407/0.1131, allocations: 0.4906 MB / 418.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006884/0.1138, allocations: 0.568 MB / 419.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.114, allocations: 143.9 kB / 419.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003112/0.1143, allocations: 164 kB / 419.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.1146, allocations: 271.2 kB / 420 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005557/0.1151, allocations: 0.5872 MB / 420.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001789/0.1169, allocations: 1.541 MB / 422.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1169, allocations: 4 kB / 422.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.117, allocations: 0 / 422.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.199e-05/0.117, allocations: 0 / 422.1 MB, free: 8.754 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.002902/0.1199, allocations: 1.413 MB / 423.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.12, allocations: 8.031 kB / 423.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.1202, allocations: 116.2 kB / 423.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009011/0.1211, allocations: 0.5582 MB / 424.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.503e-05/0.1211, allocations: 66.38 kB / 424.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.1213, allocations: 88.33 kB / 424.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.123, allocations: 0.8626 MB / 425.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.123, allocations: 0 / 425.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.962e-05/0.1231, allocations: 40 kB / 425.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.852e-05/0.1231, allocations: 24 kB / 425.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.1249, allocations: 0.855 MB / 426.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1305, allocations: 3.231 MB / 429.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.1318, allocations: 0.6762 MB / 430.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000747/0.1326, allocations: 431.1 kB / 430.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.322e-05/0.1326, allocations: 8.562 kB / 430.5 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.1327, allocations: 43.12 kB / 430.5 MB, free: 100 kB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.545e-06/0.1327, allocations: 0 / 430.5 MB, free: 100 kB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.2044/0.3371, allocations: 2.266 MB / 432.8 MB, free: 21.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.3372, allocations: 62.59 kB / 432.9 MB, free: 21.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.3378, allocations: 0.6063 MB / 433.5 MB, free: 21.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.3379, allocations: 43.67 kB / 433.5 MB, free: 21.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.3381, allocations: 449.9 kB / 434 MB, free: 21.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3382, allocations: 273.4 kB / 434.2 MB, free: 21.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.3385, allocations: 149.6 kB / 434.4 MB, free: 21.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.3386, allocations: 390.7 kB / 434.7 MB, free: 21.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006044/0.3392, allocations: 325.7 kB / 435.1 MB, free: 21.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006657/0.3398, allocations: 471.7 kB / 435.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.3413, allocations: 0.8044 MB / 436.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.3413, allocations: 1.25 kB / 436.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002202/0.3435, allocations: 1.118 MB / 437.4 MB, free: 20.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3436, allocations: 5.844 kB / 437.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3436, allocations: 4.016 kB / 437.5 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005927/0.3442, allocations: 188 kB / 437.6 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000928/0.3451, allocations: 199 kB / 437.8 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003408/0.3486, allocations: 2.889 MB / 440.7 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007927/0.3494, allocations: 38.61 kB / 440.8 MB, free: 19.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.506e-05/0.3495, allocations: 31.53 kB / 440.8 MB, free: 19.06 MB / 350.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.0003873/0.3499, allocations: 233 kB / 441 MB, free: 18.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.35, allocations: 83.45 kB / 441.1 MB, free: 18.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.3502, allocations: 93.86 kB / 441.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.3502, allocations: 9.391 kB / 441.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/0.3502, allocations: 7.188 kB / 441.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3503, allocations: 3.375 kB / 441.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3514, allocations: 0.8897 MB / 442.1 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3514, allocations: 0.5625 kB / 442.1 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.3521, allocations: 149.4 kB / 442.2 MB, free: 18.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005516/0.3527, allocations: 187.5 kB / 442.4 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.3528, allocations: 19.39 kB / 442.5 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00315/0.3559, allocations: 2.891 MB / 445.3 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3559, allocations: 0.6875 kB / 445.3 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.3585, allocations: 1.433 MB / 446.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.3587, allocations: 151.9 kB / 446.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.3589, allocations: 17.66 kB / 446.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006172/0.3595, allocations: 52.16 kB / 447 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.3596, allocations: 52.45 kB / 447 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.772e-05/0.3597, allocations: 30.97 kB / 447.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004994/0.3602, allocations: 426.5 kB / 447.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.3602, allocations: 4.094 kB / 447.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008678/0.3611, allocations: 244.8 kB / 447.7 MB, free: 15.69 MB / 350.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.0002154/0.3613, allocations: 135.6 kB / 447.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3635, allocations: 1.047 MB / 448.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3635, allocations: 1.344 kB / 448.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.3648, allocations: 0.6413 MB / 449.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.3656, allocations: 137 kB / 449.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.3685, allocations: 2.067 MB / 451.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.3689, allocations: 0.9788 MB / 452.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.3692, allocations: 67.83 kB / 452.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3693, allocations: 0 / 452.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01661/0.3859, allocations: 15.01 MB / 467.8 MB, free: 4.199 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.03937680600211]