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.001381/0.001381, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001097/0.001097, allocations: 143.9 kB / 24.97 MB, free: 8.855 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.9222/0.9222, allocations: 173.3 MB / 201.5 MB, free: 9.293 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.283e-06/1.283e-06, allocations: 0 / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.27e-05, allocations: 2.312 kB / 268.1 MB, free: 6.672 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005476/0.005499, allocations: 5.907 MB / 274 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002997/0.008496, allocations: 1.509 MB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005471/0.009043, allocations: 19.94 kB / 275.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003347/0.009378, allocations: 174.2 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005293/0.009907, allocations: 305 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008179/0.01072, allocations: 415.2 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001238/0.01196, allocations: 1.437 MB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003782/0.01234, allocations: 277.7 kB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.01343, allocations: 0.7758 MB / 278.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.01391, allocations: 450.8 kB / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.01405, allocations: 132 kB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002225/0.01427, allocations: 172 kB / 279.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.01442, allocations: 279 kB / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.01476, allocations: 427.1 kB / 280.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.01591, allocations: 0.9461 MB / 281.3 MB, free: 9.426 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.01592, allocations: 7.938 kB / 281.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01592, allocations: 0 / 281.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.01595, allocations: 0 / 281.3 MB, free: 9.418 MB / 266.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.002215/0.01816, allocations: 1.418 MB / 282.7 MB, free: 7.961 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.01821, allocations: 8.922 kB / 282.7 MB, free: 7.953 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.0185, allocations: 188.2 kB / 282.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007212/0.01922, allocations: 0.496 MB / 283.4 MB, free: 7.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.39e-05/0.01929, allocations: 66.38 kB / 283.4 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.01945, allocations: 104.3 kB / 283.5 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.02076, allocations: 0.8491 MB / 284.4 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.02078, allocations: 192 / 284.4 MB, free: 6.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-05/0.02086, allocations: 36.38 kB / 284.4 MB, free: 6.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.02088, allocations: 27.88 kB / 284.5 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.02182, allocations: 427.7 kB / 284.9 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004688/0.02651, allocations: 2.628 MB / 287.5 MB, free: 2.938 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/0.02733, allocations: 441.2 kB / 287.9 MB, free: 2.488 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003938/0.02772, allocations: 226 kB / 288.2 MB, free: 2.262 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.326e-05/0.02778, allocations: 24.64 kB / 288.2 MB, free: 2.234 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.02782, allocations: 42.05 kB / 288.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.785e-06/0.02782, allocations: 0 / 288.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003021/0.03084, allocations: 1.502 MB / 289.7 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.03088, allocations: 60.06 kB / 289.8 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.03142, allocations: 0.5453 MB / 290.3 MB, free: 16 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1565/0.1879, allocations: 38.3 kB / 290.4 MB, free: 25.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.1882, allocations: 494.3 kB / 290.8 MB, free: 25.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.1885, allocations: 271.7 kB / 291.1 MB, free: 25.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002211/0.1887, allocations: 153.8 kB / 291.3 MB, free: 25.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1888, allocations: 0.5502 MB / 291.8 MB, free: 24.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.1891, allocations: 143.9 kB / 291.9 MB, free: 24.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.1895, allocations: 335.5 kB / 292.3 MB, free: 24.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006167/0.1901, allocations: 0.5202 MB / 292.8 MB, free: 24.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1901, allocations: 2.531 kB / 292.8 MB, free: 24.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001279/0.1914, allocations: 0.7746 MB / 293.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.1914, allocations: 11.16 kB / 293.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.1914, allocations: 4.531 kB / 293.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004816/0.1919, allocations: 158.7 kB / 293.7 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005001/0.1924, allocations: 194.5 kB / 293.9 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.1948, allocations: 2.786 MB / 296.7 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004444/0.1952, allocations: 29.67 kB / 296.7 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.624e-05/0.1953, allocations: 34.25 kB / 296.8 MB, free: 22.31 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.000218/0.1955, allocations: 202 kB / 297 MB, free: 22.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.1957, allocations: 100.7 kB / 297.1 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.1958, allocations: 88.81 kB / 297.2 MB, free: 22.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1958, allocations: 12.41 kB / 297.2 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.1958, allocations: 3.219 kB / 297.2 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1958, allocations: 3.516 kB / 297.2 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.1965, allocations: 0.549 MB / 297.7 MB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.1965, allocations: 0 / 297.7 MB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/0.197, allocations: 141.8 kB / 297.9 MB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/0.1974, allocations: 159.4 kB / 298 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.267e-05/0.1975, allocations: 19.62 kB / 298 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.1997, allocations: 2.782 MB / 300.8 MB, free: 19.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1997, allocations: 2.188 kB / 300.8 MB, free: 19.83 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.2012, allocations: 0.9473 MB / 301.8 MB, free: 19.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.954e-05/0.2013, allocations: 65.14 kB / 301.8 MB, free: 19.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/0.2014, allocations: 16.41 kB / 301.9 MB, free: 19.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003591/0.2017, allocations: 42.95 kB / 301.9 MB, free: 19.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.2018, allocations: 59.83 kB / 302 MB, free: 19.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.2019, allocations: 31.22 kB / 302 MB, free: 19.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.2022, allocations: 359.1 kB / 302.3 MB, free: 19.16 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2022, allocations: 0 / 302.3 MB, free: 19.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007609/0.203, allocations: 238.3 kB / 302.6 MB, free: 19.13 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.0002089/0.2032, allocations: 134.8 kB / 302.7 MB, free: 19.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.2046, allocations: 0.7788 MB / 303.5 MB, free: 18.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2046, allocations: 5.125 kB / 303.5 MB, free: 18.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007823/0.2053, allocations: 0.5449 MB / 304 MB, free: 18.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.2059, allocations: 141.1 kB / 304.2 MB, free: 18.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.2085, allocations: 1.704 MB / 305.9 MB, free: 17.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.2086, allocations: 173.8 kB / 306 MB, free: 17.33 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.2089, allocations: 85.33 kB / 306.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.2091, allocations: 55.06 kB / 306.2 MB, free: 17.29 MB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.2091, allocations: 0 / 306.2 MB, free: 17.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01426/0.2233, allocations: 10.94 MB / 317.1 MB, free: 10.16 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 -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: 3.262092376127839]