Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001622/0.001622, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009155/0.0009155, allocations: 88.98 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003099/0.00031, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2618, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower): time 0.002922/0.2648, allocations: 2.289 MB / 377.4 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.2662, allocations: 0.694 MB / 378.1 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/0.2665, allocations: 7.219 kB / 378.1 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.2666, allocations: 28.11 kB / 378.1 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.2668, allocations: 72.11 kB / 378.2 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.2671, allocations: 67.27 kB / 378.2 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.2675, allocations: 316.9 kB / 378.6 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.2677, allocations: 75.06 kB / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.2679, allocations: 115.2 kB / 378.7 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.2681, allocations: 127.9 kB / 378.9 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.2681, allocations: 15.06 kB / 378.9 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.983e-05/0.2682, allocations: 15.34 kB / 378.9 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.014e-05/0.2682, allocations: 45.55 kB / 378.9 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.2684, allocations: 150.1 kB / 379.1 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002508/0.2687, allocations: 236.1 kB / 379.3 MB, free: 42.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.2687, allocations: 1.031 kB / 379.3 MB, free: 42.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2687, allocations: 0 / 379.3 MB, free: 42.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2687, allocations: 4 kB / 379.3 MB, free: 42.17 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001179/0.2699, allocations: 0.6049 MB / 379.9 MB, free: 41.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.2699, allocations: 9.781 kB / 379.9 MB, free: 41.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.772e-05/0.27, allocations: 27.44 kB / 380 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.2704, allocations: 271.3 kB / 380.2 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.2704, allocations: 17.03 kB / 380.2 MB, free: 41.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.2705, allocations: 26.55 kB / 380.3 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.2712, allocations: 257.9 kB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2712, allocations: 3.938 kB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2712, allocations: 9.844 kB / 380.5 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.2712, allocations: 5.281 kB / 380.5 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007992/0.272, allocations: 292.1 kB / 380.8 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.2736, allocations: 0.851 MB / 381.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.2743, allocations: 302.7 kB / 382 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.2746, allocations: 106.9 kB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.2747, allocations: 5.062 kB / 382.1 MB, free: 40.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000475/0.2751, allocations: 179.2 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.665e-06/0.2752, allocations: 1.188 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001901/0.2771, allocations: 0.6402 MB / 382.9 MB, free: 39.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.2771, allocations: 109.3 kB / 383 MB, free: 39.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.2774, allocations: 260.5 kB / 383.3 MB, free: 39.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.2775, allocations: 32.44 kB / 383.3 MB, free: 39.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.2776, allocations: 186.2 kB / 383.5 MB, free: 39.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.2776, allocations: 29.25 kB / 383.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.2776, allocations: 9.062 kB / 383.5 MB, free: 39.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.296e-05/0.2777, allocations: 343.7 kB / 383.8 MB, free: 38.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.278, allocations: 105.4 kB / 384 MB, free: 38.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.2784, allocations: 201.1 kB / 384.1 MB, free: 38.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006203/0.279, allocations: 317.1 kB / 384.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2791, allocations: 1.438 kB / 384.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001158/0.2802, allocations: 469.8 kB / 384.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.2804, allocations: 203.2 kB / 385.1 MB, free: 37.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.2804, allocations: 7.234 kB / 385.1 MB, free: 37.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003076/0.2807, allocations: 59.58 kB / 385.2 MB, free: 37.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.281, allocations: 56.86 kB / 385.2 MB, free: 37.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.2826, allocations: 1.5 MB / 386.7 MB, free: 36.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004087/0.283, allocations: 60.45 kB / 386.8 MB, free: 36.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.283, allocations: 16.86 kB / 386.8 MB, free: 36.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.2831, allocations: 2.906 kB / 386.8 MB, free: 36.3 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006824/0.2838, allocations: 328.2 kB / 387.1 MB, free: 36.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.2838, allocations: 7.938 kB / 387.1 MB, free: 36.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.647e-05/0.2839, allocations: 28.92 kB / 387.2 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.2841, allocations: 51.97 kB / 387.2 MB, free: 35.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007339/0.2848, allocations: 1.384 MB / 388.6 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.2851, allocations: 55.84 kB / 388.7 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.2852, allocations: 12 kB / 388.7 MB, free: 34.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.2854, allocations: 216.8 kB / 388.9 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.689e-05/0.2854, allocations: 23.72 kB / 388.9 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.029e-05/0.2855, allocations: 25.7 kB / 388.9 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2855, allocations: 4 kB / 388.9 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2855, allocations: 3.938 kB / 388.9 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/0.2855, allocations: 3.984 kB / 388.9 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.2865, allocations: 0.6513 MB / 389.6 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.2866, allocations: 0 / 389.6 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.2867, allocations: 31.97 kB / 389.6 MB, free: 33.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.2869, allocations: 56.83 kB / 389.7 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2869, allocations: 7.922 kB / 389.7 MB, free: 33.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.288, allocations: 1.487 MB / 391.2 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2881, allocations: 0 / 391.2 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.2888, allocations: 404.5 kB / 391.6 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.213e-05/0.2889, allocations: 104.8 kB / 391.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.2889, allocations: 7.938 kB / 391.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.2892, allocations: 39.97 kB / 391.7 MB, free: 31.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.2892, allocations: 15.97 kB / 391.7 MB, free: 31.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.2893, allocations: 7.984 kB / 391.7 MB, free: 31.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001575/0.2894, allocations: 186 kB / 391.9 MB, free: 30.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2894, allocations: 0 / 391.9 MB, free: 30.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005811/0.29, allocations: 119.7 kB / 392 MB, free: 30.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001326/0.2902, allocations: 107.2 kB / 392.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.2914, allocations: 0.7002 MB / 392.9 MB, free: 29.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.2915, allocations: 8.062 kB / 392.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003657/0.2918, allocations: 226.6 kB / 393.1 MB, free: 29.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.2923, allocations: 42.92 kB / 393.1 MB, free: 29.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008661/0.2932, allocations: 0.5427 MB / 393.7 MB, free: 29.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.2934, allocations: 0.7444 MB / 394.4 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.68e-05/0.2935, allocations: 19.44 kB / 394.4 MB, free: 28.27 MB / 298.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2935, allocations: 0 / 394.4 MB, free: 28.27 MB / 298.7 MB Notification: Performance of Templates: time 0.005506/0.299, allocations: 4.113 MB / 398.5 MB, free: 24.16 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/VoltageFollower/VoltageFollower.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches