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.001625/0.001625, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001923/0.001923, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.445/1.445, allocations: 230.6 MB / 258.3 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.001675/0.001675, allocations: 43.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2436, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007401/0.251, allocations: 5.336 MB / 437.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003397/0.2543, allocations: 1.521 MB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008002/0.2551, allocations: 19.94 kB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006031/0.2558, allocations: 178.2 kB / 439.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009877/0.2567, allocations: 297.3 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.2578, allocations: 415.3 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001738/0.2596, allocations: 1.395 MB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.26, allocations: 277.4 kB / 441.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007756/0.2608, allocations: 0.5063 MB / 442.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006966/0.2615, allocations: 0.5093 MB / 442.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.2617, allocations: 132 kB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003206/0.262, allocations: 176 kB / 443.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.2623, allocations: 279.1 kB / 443.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004946/0.2628, allocations: 490 kB / 443.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.2644, allocations: 1.56 MB / 445.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2644, allocations: 0 / 445.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2644, allocations: 4 kB / 445.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.2644, allocations: 0 / 445.4 MB, free: 9.621 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.00275/0.2672, allocations: 1.334 MB / 446.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2672, allocations: 8.031 kB / 446.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003495/0.2676, allocations: 132.2 kB / 446.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008759/0.2685, allocations: 0.5017 MB / 447.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/0.2685, allocations: 66.38 kB / 447.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.2687, allocations: 88.38 kB / 447.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.2705, allocations: 1.106 MB / 448.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.2705, allocations: 0 / 448.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-05/0.2706, allocations: 39.98 kB / 448.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.2706, allocations: 20 kB / 448.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.2724, allocations: 0.8589 MB / 449.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00571/0.2781, allocations: 2.756 MB / 452.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.2793, allocations: 0.6185 MB / 452.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007455/0.28, allocations: 398 kB / 453.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.717e-05/0.2801, allocations: 16.64 kB / 453.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.2801, allocations: 43.22 kB / 453.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.645e-06/0.2801, allocations: 0 / 453.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004933/0.2851, allocations: 2.193 MB / 455.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.2851, allocations: 60.06 kB / 455.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/0.2859, allocations: 0.5537 MB / 456.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.503e-05/0.2859, allocations: 41.7 kB / 456.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.2863, allocations: 448.3 kB / 456.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.2865, allocations: 281.6 kB / 456.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.2868, allocations: 150.5 kB / 457.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.287, allocations: 386.7 kB / 457.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000727/0.2877, allocations: 325.8 kB / 457.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.2886, allocations: 472.6 kB / 458.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.2902, allocations: 0.8008 MB / 459 MB, free: 11.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2902, allocations: 0 / 459 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002387/0.2926, allocations: 1.107 MB / 460.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.2927, allocations: 11.94 kB / 460.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.2927, allocations: 8 kB / 460.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005744/0.2932, allocations: 187.6 kB / 460.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009116/0.2942, allocations: 199.7 kB / 460.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.2982, allocations: 2.72 MB / 463.2 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006804/0.2988, allocations: 32.05 kB / 463.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-05/0.2989, allocations: 39.92 kB / 463.3 MB, free: 7.145 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.0003956/0.2993, allocations: 237.6 kB / 463.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.2994, allocations: 75.53 kB / 463.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.2996, allocations: 98.52 kB / 463.7 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.2997, allocations: 4 kB / 463.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.2997, allocations: 4 kB / 463.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2997, allocations: 3.984 kB / 463.7 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009543/0.3006, allocations: 0.6114 MB / 464.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3006, allocations: 0 / 464.3 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007585/0.3014, allocations: 151.8 kB / 464.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005411/0.3019, allocations: 176.7 kB / 464.7 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-05/0.302, allocations: 19.98 kB / 464.7 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.306, allocations: 2.737 MB / 467.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.306, allocations: 0 / 467.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002855/0.3088, allocations: 1.428 MB / 468.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.309, allocations: 67.45 kB / 468.9 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3091, allocations: 16 kB / 468.9 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006397/0.3098, allocations: 59.89 kB / 469 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3099, allocations: 52.55 kB / 469 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.527e-05/0.31, allocations: 23.98 kB / 469.1 MB, free: 1.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.3105, allocations: 378.8 kB / 469.4 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3105, allocations: 4 kB / 469.4 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008566/0.3113, allocations: 236 kB / 469.7 MB, free: 0.6367 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.0002453/0.3116, allocations: 139.1 kB / 469.8 MB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002438/0.314, allocations: 0.994 MB / 470.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.314, allocations: 0 / 470.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001409/0.3154, allocations: 0.6119 MB / 471.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000712/0.3161, allocations: 128.5 kB / 471.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.3196, allocations: 2.052 MB / 473.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.32, allocations: 391 kB / 474 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002731/0.3203, allocations: 67.41 kB / 474 MB, free: 12.16 MB / 382.1 MB Notification: Performance of SimCode: time 1.021e-06/0.3203, allocations: 0 / 474 MB, free: 12.16 MB / 382.1 MB Notification: Performance of Templates: time 0.02126/0.3416, allocations: 15.05 MB / 489.1 MB, free: 13.14 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/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: 8.183839401230216]