Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.702/1.702, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 47.94 kB / 373.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1448, allocations: 53.33 MB / 426.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2402/0.385, allocations: 6.106 MB / 432.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.3876, allocations: 1.556 MB / 434.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003781/0.3879, allocations: 24.5 kB / 434.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.3883, allocations: 174.4 kB / 434.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.3887, allocations: 293.6 kB / 435 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.3894, allocations: 410.5 kB / 435.4 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.3905, allocations: 1.396 MB / 436.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.3909, allocations: 299.7 kB / 437.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006531/0.3915, allocations: 0.5049 MB / 437.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006081/0.3921, allocations: 0.5689 MB / 438.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.3923, allocations: 135.4 kB / 438.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003355/0.3927, allocations: 179.6 kB / 438.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.3929, allocations: 273.9 kB / 438.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004953/0.3934, allocations: 0.5908 MB / 439.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001826/0.3952, allocations: 1.548 MB / 440.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3952, allocations: 2.875 kB / 440.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3952, allocations: 0 / 440.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.197e-05/0.3952, allocations: 2.031 kB / 440.8 MB, free: 5.129 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.002842/0.3981, allocations: 1.411 MB / 442.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.3981, allocations: 9.75 kB / 442.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/0.3985, allocations: 134.7 kB / 442.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000759/0.3993, allocations: 0.5558 MB / 443 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.23e-05/0.3993, allocations: 65.28 kB / 443 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3995, allocations: 87.44 kB / 443.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.4013, allocations: 0.8633 MB / 444 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.4013, allocations: 0 / 444 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.571e-05/0.4014, allocations: 36.22 kB / 444 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.4014, allocations: 22.28 kB / 444 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.4032, allocations: 0.8528 MB / 444.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00573/0.4089, allocations: 3.227 MB / 448.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4102, allocations: 0.6248 MB / 448.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008015/0.411, allocations: 387.6 kB / 449.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.678e-05/0.411, allocations: 19.3 kB / 449.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.4111, allocations: 41.69 kB / 449.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.705e-06/0.4111, allocations: 4 kB / 449.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0055/0.4166, allocations: 2.278 MB / 451.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.4166, allocations: 59.28 kB / 451.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009392/0.4176, allocations: 0.6082 MB / 452.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.204e-05/0.4176, allocations: 37.58 kB / 452.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003983/0.418, allocations: 453.2 kB / 452.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.4184, allocations: 272.5 kB / 452.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.4187, allocations: 150.4 kB / 453 MB, free: 14.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002841/0.419, allocations: 390.7 kB / 453.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/0.4197, allocations: 321 kB / 453.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008826/0.4205, allocations: 471 kB / 454.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.4222, allocations: 0.8003 MB / 455 MB, free: 13.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4222, allocations: 5.062 kB / 455 MB, free: 13.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002699/0.4249, allocations: 1.116 MB / 456.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.4249, allocations: 6.875 kB / 456.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.4249, allocations: 7.469 kB / 456.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.4256, allocations: 186.3 kB / 456.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4266, allocations: 196.7 kB / 456.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004823/0.4315, allocations: 2.883 MB / 459.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4325, allocations: 32.8 kB / 459.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.602e-05/0.4326, allocations: 35.86 kB / 459.4 MB, free: 10.33 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.0007392/0.4333, allocations: 231.2 kB / 459.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.4335, allocations: 87.52 kB / 459.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000248/0.4337, allocations: 95.77 kB / 459.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4338, allocations: 6.531 kB / 459.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.708e-05/0.4338, allocations: 4.031 kB / 459.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.4338, allocations: 7.922 kB / 459.8 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.4354, allocations: 0.8883 MB / 460.7 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.4354, allocations: 3.938 kB / 460.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.4362, allocations: 148.9 kB / 460.9 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005936/0.4368, allocations: 177 kB / 461.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.719e-05/0.4369, allocations: 30.02 kB / 461.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004797/0.4416, allocations: 2.887 MB / 464 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4417, allocations: 9.516 kB / 464 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.4448, allocations: 1.428 MB / 465.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003075/0.4451, allocations: 146.7 kB / 465.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.4453, allocations: 17.22 kB / 465.6 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006506/0.4459, allocations: 53.11 kB / 465.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.4461, allocations: 55.48 kB / 465.7 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.4461, allocations: 23.7 kB / 465.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005905/0.4467, allocations: 429.6 kB / 466.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4467, allocations: 0 / 466.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009971/0.4477, allocations: 239.2 kB / 466.3 MB, free: 5.43 MB / 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.0002823/0.448, allocations: 143.8 kB / 466.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.4505, allocations: 0.987 MB / 467.5 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.4505, allocations: 2.5 kB / 467.5 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.452, allocations: 0.6221 MB / 468.1 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/0.4528, allocations: 154.7 kB / 468.3 MB, free: 4.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.4564, allocations: 2.024 MB / 470.3 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006084/0.457, allocations: 0.9802 MB / 471.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003789/0.4574, allocations: 89.81 kB / 471.3 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.4575, allocations: 60 kB / 471.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4575, allocations: 0 / 471.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of Templates: time 0.0225/0.48, allocations: 11.39 MB / 482.8 MB, free: 7.891 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 5.696576248854399]