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.001994/0.001994, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002656/0.002656, allocations: 208.9 kB / 23.73 MB, free: 4.523 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.002322/0.002322, allocations: 51.92 kB / 378.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3252, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007598/0.3328, allocations: 5.347 MB / 436.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003777/0.3366, allocations: 1.525 MB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.3375, allocations: 15.94 kB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.3381, allocations: 170.3 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008181/0.3389, allocations: 297.2 kB / 438.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.34, allocations: 423.4 kB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.3419, allocations: 1.391 MB / 440.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005732/0.3425, allocations: 296.2 kB / 441 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009471/0.3434, allocations: 0.5101 MB / 441.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000803/0.3442, allocations: 0.5719 MB / 442.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.3444, allocations: 136 kB / 442.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003292/0.3448, allocations: 176 kB / 442.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.345, allocations: 275.2 kB / 442.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006245/0.3457, allocations: 497.9 kB / 443.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.3473, allocations: 1.56 MB / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3473, allocations: 0 / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3473, allocations: 0 / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.618e-05/0.3474, allocations: 0 / 444.7 MB, free: 9.496 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.003022/0.3504, allocations: 1.334 MB / 446.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3504, allocations: 11.97 kB / 446.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003897/0.3508, allocations: 132.2 kB / 446.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009605/0.3518, allocations: 0.4978 MB / 446.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-05/0.3519, allocations: 66.38 kB / 446.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.352, allocations: 92.3 kB / 446.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.354, allocations: 1.106 MB / 448 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.354, allocations: 0 / 448 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.632e-05/0.3541, allocations: 40 kB / 448 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.3541, allocations: 20 kB / 448 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.356, allocations: 0.8511 MB / 448.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006305/0.3623, allocations: 2.764 MB / 451.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.3639, allocations: 0.6184 MB / 452.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007453/0.3646, allocations: 403.2 kB / 452.7 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.662e-05/0.3647, allocations: 8.656 kB / 452.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.3647, allocations: 43.22 kB / 452.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.525e-06/0.3647, allocations: 0 / 452.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005435/0.3702, allocations: 2.19 MB / 454.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.3702, allocations: 60.06 kB / 455 MB, free: 14.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008194/0.371, allocations: 0.5537 MB / 455.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.278e-05/0.3711, allocations: 41.7 kB / 455.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004093/0.3715, allocations: 448.2 kB / 456 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.3718, allocations: 273.7 kB / 456.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.3721, allocations: 154.5 kB / 456.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002345/0.3723, allocations: 382.8 kB / 456.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006928/0.373, allocations: 325.9 kB / 457.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000861/0.3739, allocations: 476.5 kB / 457.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.3754, allocations: 0.8047 MB / 458.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3754, allocations: 0 / 458.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002376/0.3778, allocations: 1.111 MB / 459.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.3778, allocations: 7.938 kB / 459.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3778, allocations: 4 kB / 459.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006183/0.3785, allocations: 184.7 kB / 459.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009338/0.3794, allocations: 199.8 kB / 459.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004421/0.3838, allocations: 2.725 MB / 462.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007811/0.3846, allocations: 35.97 kB / 462.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.3847, allocations: 32 kB / 462.7 MB, free: 7.02 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.0004507/0.3851, allocations: 237.6 kB / 462.9 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.3853, allocations: 79.53 kB / 463 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.3855, allocations: 90.53 kB / 463.1 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3855, allocations: 8 kB / 463.1 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/0.3855, allocations: 11.94 kB / 463.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.3855, allocations: 3.984 kB / 463.1 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009486/0.3865, allocations: 0.6075 MB / 463.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.3865, allocations: 0 / 463.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007689/0.3872, allocations: 143.8 kB / 463.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000577/0.3878, allocations: 179.8 kB / 464 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/0.3879, allocations: 19.98 kB / 464 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.3919, allocations: 2.734 MB / 466.8 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3919, allocations: 0 / 466.8 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.3947, allocations: 1.428 MB / 468.2 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3949, allocations: 71.52 kB / 468.2 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.395, allocations: 16 kB / 468.3 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006466/0.3956, allocations: 55.89 kB / 468.3 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.3957, allocations: 52.55 kB / 468.4 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.3958, allocations: 23.98 kB / 468.4 MB, free: 1.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004805/0.3963, allocations: 382.8 kB / 468.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3963, allocations: 0 / 468.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008414/0.3971, allocations: 240 kB / 469 MB, free: 0.5117 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.0002367/0.3974, allocations: 134.2 kB / 469.1 MB, free: 380 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002341/0.3997, allocations: 0.9908 MB / 470.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3997, allocations: 8.062 kB / 470.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.4012, allocations: 0.615 MB / 470.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007164/0.4019, allocations: 125.1 kB / 470.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.4056, allocations: 2.022 MB / 472.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.406, allocations: 391 kB / 473.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003806/0.4064, allocations: 85.11 kB / 473.4 MB, free: 12.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.4066, allocations: 55.41 kB / 473.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4066, allocations: 0 / 473.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of Templates: time 0.02219/0.4287, allocations: 12.2 MB / 485.6 MB, free: 15.98 MB / 398.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.3792465049773455]