Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 105 kB / 17.73 MB, free: 5.23 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001707/0.001708, allocations: 188.1 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 39.94 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2713, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.003771/0.2751, allocations: 2.868 MB / 404.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2762, allocations: 0.7167 MB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2764, allocations: 4 kB / 405 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.2765, allocations: 47.5 kB / 405.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.2767, allocations: 103.2 kB / 405.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.277, allocations: 107.8 kB / 405.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003588/0.2774, allocations: 398.5 kB / 405.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.2776, allocations: 127.2 kB / 405.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.2778, allocations: 147.4 kB / 405.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001811/0.278, allocations: 159.3 kB / 406.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.365e-05/0.2781, allocations: 40 kB / 406.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.077e-05/0.2781, allocations: 36 kB / 406.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.889e-05/0.2782, allocations: 83.67 kB / 406.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.2783, allocations: 163.2 kB / 406.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.2787, allocations: 427.7 kB / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2787, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2787, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.2787, allocations: 0 / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001199/0.2799, allocations: 0.6575 MB / 407.5 MB, free: 2.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.28, allocations: 15.83 kB / 407.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.2801, allocations: 36.56 kB / 407.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.2804, allocations: 288.7 kB / 407.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2805, allocations: 20.92 kB / 407.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.2805, allocations: 24.38 kB / 407.9 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006403/0.2812, allocations: 323.9 kB / 408.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2812, allocations: 0 / 408.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.2812, allocations: 12 kB / 408.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2812, allocations: 4 kB / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000741/0.282, allocations: 274.1 kB / 408.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.2836, allocations: 1.107 MB / 409.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000825/0.2845, allocations: 242.5 kB / 409.8 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.2848, allocations: 104.8 kB / 409.9 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2848, allocations: 7.938 kB / 409.9 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004181/0.2852, allocations: 172.9 kB / 410.1 MB, free: 4 kB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.896e-06/0.2853, allocations: 0 / 410.1 MB, free: 4 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001025/0.2863, allocations: 309.2 kB / 410.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/0.2864, allocations: 89.03 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.2867, allocations: 270.5 kB / 410.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.2867, allocations: 25.7 kB / 410.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.2869, allocations: 199.5 kB / 410.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.711e-05/0.2869, allocations: 35.45 kB / 411 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.287, allocations: 49.7 kB / 411 MB, free: 15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2872, allocations: 334.8 kB / 411.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.2875, allocations: 104.1 kB / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.2879, allocations: 196.2 kB / 411.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006571/0.2886, allocations: 295.8 kB / 411.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2886, allocations: 4 kB / 411.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008165/0.2894, allocations: 370.9 kB / 412.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.2894, allocations: 33.7 kB / 412.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2895, allocations: 0 / 412.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.2895, allocations: 4 kB / 412.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.2898, allocations: 71.88 kB / 412.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2898, allocations: 7.938 kB / 412.4 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.2901, allocations: 55.72 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.2901, allocations: 12 kB / 412.5 MB, free: 13.42 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.2903, allocations: 149.4 kB / 412.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.2903, allocations: 19.81 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.141e-05/0.2904, allocations: 25.7 kB / 412.7 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2904, allocations: 4 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2904, allocations: 0 / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2904, allocations: 7.875 kB / 412.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.2907, allocations: 317.3 kB / 413 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2907, allocations: 0 / 413 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.2909, allocations: 47.95 kB / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2909, allocations: 0 / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.291, allocations: 0 / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/0.291, allocations: 3.938 kB / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.291, allocations: 0 / 413 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009864/0.292, allocations: 376.9 kB / 413.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.2921, allocations: 96.94 kB / 413.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.578e-05/0.2921, allocations: 4 kB / 413.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2923, allocations: 27.97 kB / 413.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.988e-05/0.2924, allocations: 19.97 kB / 413.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.2924, allocations: 3.938 kB / 413.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2926, allocations: 190 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 4 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.2929, allocations: 67.75 kB / 413.8 MB, free: 11.99 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001322/0.293, allocations: 107.2 kB / 413.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007487/0.2938, allocations: 295.2 kB / 414.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2938, allocations: 0 / 414.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.2941, allocations: 104.4 kB / 414.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.2944, allocations: 51.62 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.2955, allocations: 0.5464 MB / 414.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.2958, allocations: 0.7518 MB / 415.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.793e-05/0.2958, allocations: 23.38 kB / 415.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2959, allocations: 0 / 415.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of Templates: time 0.004758/0.3006, allocations: 3.375 MB / 419.1 MB, free: 6.676 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches