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.0007868/0.0007868, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001204/0.00199, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006662/0.0006662, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009724/0.001639, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9824/0.9824, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08356/1.066, allocations: 52.5 MB / 238.3 MB, free: 4.438 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.152e-06/1.152e-06, allocations: 0 / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.396e-05, allocations: 2.312 kB / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004759/0.004773, allocations: 5.88 MB / 245.4 MB, free: 13.26 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002728/0.007501, allocations: 1.582 MB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004133/0.007914, allocations: 19.94 kB / 247.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.008151, allocations: 174.2 kB / 247.2 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004536/0.008605, allocations: 305 kB / 247.5 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006442/0.009249, allocations: 419.2 kB / 247.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.01033, allocations: 1.437 MB / 249.4 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003377/0.01067, allocations: 297.7 kB / 249.7 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008587/0.01152, allocations: 0.8411 MB / 250.5 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006989/0.01222, allocations: 454.8 kB / 250.9 MB, free: 7.715 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.01236, allocations: 136 kB / 251.1 MB, free: 7.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.01257, allocations: 167.9 kB / 251.2 MB, free: 7.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001307/0.0127, allocations: 211.4 kB / 251.4 MB, free: 7.211 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002648/0.01297, allocations: 351.4 kB / 251.8 MB, free: 6.867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006641/0.01363, allocations: 0.8565 MB / 252.6 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.972e-05/0.01365, allocations: 0 / 252.6 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01365, allocations: 0 / 252.6 MB, free: 6.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.948e-05/0.01368, allocations: 0 / 252.6 MB, free: 6.008 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.001537/0.01522, allocations: 1.524 MB / 254.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.01525, allocations: 8.031 kB / 254.2 MB, free: 4.445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.0154, allocations: 148.8 kB / 254.3 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.0158, allocations: 377.2 kB / 254.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.01584, allocations: 62.38 kB / 254.8 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.895e-05/0.01593, allocations: 96.38 kB / 254.8 MB, free: 3.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006145/0.01654, allocations: 0.806 MB / 255.7 MB, free: 2.871 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.01656, allocations: 4.125 kB / 255.7 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.0166, allocations: 40.38 kB / 255.7 MB, free: 2.828 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.01662, allocations: 27.94 kB / 255.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.01695, allocations: 269.8 kB / 256 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.01963, allocations: 2.064 MB / 258 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.02, allocations: 361.2 kB / 258.4 MB, free: 12 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.02018, allocations: 183.2 kB / 258.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.02022, allocations: 24.58 kB / 258.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.02025, allocations: 39.22 kB / 258.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 1.974e-06/0.02025, allocations: 0 / 258.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001499/0.02175, allocations: 1.14 MB / 259.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.02178, allocations: 64.05 kB / 259.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.02206, allocations: 491 kB / 260.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.02209, allocations: 41.7 kB / 260.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.02223, allocations: 385.4 kB / 260.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.02236, allocations: 273.7 kB / 261 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.0225, allocations: 146.5 kB / 261.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.0226, allocations: 394.5 kB / 261.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.02273, allocations: 89.95 kB / 261.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.02291, allocations: 244.5 kB / 261.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.02327, allocations: 415.9 kB / 262.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.02328, allocations: 0 / 262.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006201/0.0239, allocations: 0.5426 MB / 262.8 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.02391, allocations: 8 kB / 262.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.02392, allocations: 4 kB / 262.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002796/0.0242, allocations: 139.6 kB / 263 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005226/0.02472, allocations: 250.6 kB / 263.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.02652, allocations: 1.984 MB / 265.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.02675, allocations: 35.92 kB / 265.2 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.02678, allocations: 20 kB / 265.2 MB, free: 8.895 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.0001387/0.02692, allocations: 149.7 kB / 265.4 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.606e-05/0.02699, allocations: 75.92 kB / 265.5 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.667e-05/0.02708, allocations: 90.58 kB / 265.6 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.02708, allocations: 12 kB / 265.6 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.02709, allocations: 4 kB / 265.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.0271, allocations: 3.984 kB / 265.6 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.02751, allocations: 442.5 kB / 266 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.02751, allocations: 0 / 266 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000406/0.02792, allocations: 179.7 kB / 266.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.171e-05/0.02797, allocations: 59.53 kB / 266.2 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002654/0.02824, allocations: 151.2 kB / 266.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.02827, allocations: 19.97 kB / 266.4 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.02967, allocations: 1.977 MB / 268.4 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.02967, allocations: 0 / 268.4 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.03039, allocations: 0.6978 MB / 269.1 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.03045, allocations: 16 kB / 269.1 MB, free: 4.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.03068, allocations: 47.97 kB / 269.1 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.475e-05/0.03075, allocations: 52.55 kB / 269.2 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.03078, allocations: 19.98 kB / 269.2 MB, free: 4.781 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001507/0.03093, allocations: 224.3 kB / 269.4 MB, free: 4.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03093, allocations: 0 / 269.4 MB, free: 4.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004395/0.03137, allocations: 240 kB / 269.7 MB, free: 4.328 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.0001644/0.03153, allocations: 108.3 kB / 269.8 MB, free: 4.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007297/0.03226, allocations: 0.6331 MB / 270.4 MB, free: 3.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.389e-05/0.03229, allocations: 24.62 kB / 270.4 MB, free: 3.547 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.03275, allocations: 456 kB / 270.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.03313, allocations: 206.2 kB / 271.1 MB, free: 2.879 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005292/0.03843, allocations: 1.568 MB / 272.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.03854, allocations: 183.3 kB / 272.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.03876, allocations: 89.11 kB / 272.9 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003059/0.03907, allocations: 209.2 kB / 273.1 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.03907, allocations: 0 / 273.1 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of Templates: time 0.111/0.1501, allocations: 12.23 MB / 285.3 MB, free: 19.11 MB / 266.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.978588493540883]