Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001392/0.001392, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001598/0.001598, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.5 MB / 257.4 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 67.89 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3141, allocations: 53.41 MB / 431.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007875/0.322, allocations: 5.339 MB / 437 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003777/0.3258, allocations: 1.525 MB / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000937/0.3267, allocations: 19.94 kB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006284/0.3274, allocations: 174.2 kB / 438.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.3284, allocations: 293.3 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.3296, allocations: 415.3 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001994/0.3316, allocations: 1.391 MB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005588/0.3322, allocations: 280.2 kB / 441.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000814/0.333, allocations: 0.5101 MB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006626/0.3336, allocations: 0.5016 MB / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.3338, allocations: 132 kB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003457/0.3342, allocations: 180 kB / 442.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002737/0.3344, allocations: 279.1 kB / 442.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004955/0.3349, allocations: 493.9 kB / 443.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.3366, allocations: 1.553 MB / 444.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3366, allocations: 0 / 444.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3366, allocations: 4 kB / 444.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.3366, allocations: 0 / 444.7 MB, free: 9.422 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.002775/0.3394, allocations: 1.338 MB / 446 MB, free: 8.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3394, allocations: 8.031 kB / 446 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003888/0.3398, allocations: 136.2 kB / 446.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009497/0.3407, allocations: 0.4978 MB / 446.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.3408, allocations: 62.38 kB / 446.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.341, allocations: 88.38 kB / 446.8 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.3427, allocations: 1.106 MB / 447.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.3427, allocations: 0 / 447.9 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.793e-05/0.3428, allocations: 36 kB / 448 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.3429, allocations: 20 kB / 448 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.3446, allocations: 0.8666 MB / 448.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005417/0.35, allocations: 2.76 MB / 451.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.3512, allocations: 0.6177 MB / 452.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007233/0.3519, allocations: 399 kB / 452.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.022e-05/0.352, allocations: 16.64 kB / 452.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.352, allocations: 43.22 kB / 452.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.825e-06/0.352, allocations: 3.938 kB / 452.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004736/0.3568, allocations: 2.186 MB / 454.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.3568, allocations: 64.05 kB / 454.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007088/0.3575, allocations: 0.5498 MB / 455.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.3576, allocations: 41.7 kB / 455.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.3579, allocations: 456.2 kB / 456 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/0.3582, allocations: 277.6 kB / 456.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.3584, allocations: 146.6 kB / 456.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3586, allocations: 382.8 kB / 456.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006775/0.3593, allocations: 321.9 kB / 457.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007944/0.3601, allocations: 472.6 kB / 457.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.3616, allocations: 0.8047 MB / 458.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3616, allocations: 0 / 458.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002255/0.3638, allocations: 1.103 MB / 459.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.3639, allocations: 11.94 kB / 459.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.3639, allocations: 4 kB / 459.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/0.3645, allocations: 187.3 kB / 459.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008957/0.3654, allocations: 203.7 kB / 459.8 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003961/0.3693, allocations: 2.725 MB / 462.6 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00064/0.37, allocations: 36.03 kB / 462.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/0.37, allocations: 39.98 kB / 462.6 MB, free: 6.945 MB / 366.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.0003894/0.3704, allocations: 229.7 kB / 462.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3706, allocations: 75.53 kB / 462.9 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.3708, allocations: 98.52 kB / 463 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.3708, allocations: 4 kB / 463 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.3708, allocations: 4 kB / 463 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3708, allocations: 3.984 kB / 463 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009632/0.3717, allocations: 0.6114 MB / 463.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3717, allocations: 3.938 kB / 463.6 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007239/0.3725, allocations: 151.8 kB / 463.8 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005059/0.373, allocations: 176.7 kB / 464 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.373, allocations: 28.11 kB / 464 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003813/0.3768, allocations: 2.723 MB / 466.7 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3768, allocations: 4 kB / 466.7 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002782/0.3796, allocations: 1.431 MB / 468.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.3798, allocations: 63.52 kB / 468.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.751e-05/0.3799, allocations: 16 kB / 468.2 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.3805, allocations: 59.89 kB / 468.3 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.3806, allocations: 52.55 kB / 468.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.532e-05/0.3807, allocations: 27.98 kB / 468.4 MB, free: 1.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004781/0.3811, allocations: 374.8 kB / 468.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3811, allocations: 0 / 468.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008495/0.382, allocations: 240 kB / 469 MB, free: 452 kB / 366.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.000235/0.3822, allocations: 139.1 kB / 469.1 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002258/0.3845, allocations: 0.9823 MB / 470.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3845, allocations: 4 kB / 470.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.3859, allocations: 0.6158 MB / 470.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.3865, allocations: 122.5 kB / 470.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/0.39, allocations: 2.026 MB / 472.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.3904, allocations: 391 kB / 473.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003628/0.3907, allocations: 81.12 kB / 473.3 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.3909, allocations: 63.34 kB / 473.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3909, allocations: 0 / 473.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of Templates: time 0.02175/0.4126, allocations: 11.97 MB / 485.3 MB, free: 144 kB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.045437389984727]