Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.427/1.427, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 59.91 kB / 359.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2618, allocations: 50.55 MB / 410.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004268/0.2661, allocations: 2.882 MB / 413.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2677, allocations: 0.7479 MB / 413.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.2679, allocations: 4 kB / 413.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.268, allocations: 51.5 kB / 413.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.2682, allocations: 99.25 kB / 414 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.2686, allocations: 119.7 kB / 414.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.269, allocations: 382.5 kB / 414.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.2692, allocations: 99.19 kB / 414.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.2696, allocations: 159.4 kB / 414.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.2698, allocations: 167.2 kB / 414.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.2698, allocations: 36 kB / 415 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.218e-05/0.2699, allocations: 40 kB / 415 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.382e-05/0.27, allocations: 75.77 kB / 415.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.2701, allocations: 167.2 kB / 415.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.2706, allocations: 426.3 kB / 415.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2706, allocations: 3.984 kB / 415.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2706, allocations: 0 / 415.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.2706, allocations: 0 / 415.7 MB, free: 12.12 MB / 334.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.001345/0.272, allocations: 0.6651 MB / 416.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.272, allocations: 12.03 kB / 416.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.774e-05/0.2721, allocations: 32.75 kB / 416.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.2726, allocations: 288.8 kB / 416.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.2726, allocations: 16.94 kB / 416.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.2726, allocations: 32.31 kB / 416.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007472/0.2734, allocations: 319.9 kB / 417 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2734, allocations: 0 / 417 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.2734, allocations: 4 kB / 417 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2734, allocations: 8 kB / 417 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008205/0.2743, allocations: 274.1 kB / 417.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.2761, allocations: 1.119 MB / 418.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000892/0.277, allocations: 242.5 kB / 418.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.2774, allocations: 96.78 kB / 418.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.2774, allocations: 0 / 418.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000468/0.2779, allocations: 169 kB / 418.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.2779, allocations: 0 / 418.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001081/0.279, allocations: 321.2 kB / 419.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.279, allocations: 77.11 kB / 419.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.2793, allocations: 274.6 kB / 419.6 MB, free: 7.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.2794, allocations: 29.7 kB / 419.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.2795, allocations: 195.9 kB / 419.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.2796, allocations: 51.62 kB / 419.8 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.2797, allocations: 45.7 kB / 419.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.2798, allocations: 334.8 kB / 420.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.2802, allocations: 104.2 kB / 420.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.2806, allocations: 195.5 kB / 420.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/0.2814, allocations: 303 kB / 420.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2814, allocations: 0 / 420.8 MB, free: 6.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009139/0.2823, allocations: 362.8 kB / 421.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.2823, allocations: 33.69 kB / 421.2 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2823, allocations: 4 kB / 421.2 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.2824, allocations: 4.344 kB / 421.2 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.2827, allocations: 71.89 kB / 421.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2827, allocations: 7.938 kB / 421.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.283, allocations: 55.73 kB / 421.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.283, allocations: 8 kB / 421.3 MB, free: 6.074 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.0001538/0.2831, allocations: 153.7 kB / 421.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.778e-05/0.2832, allocations: 23.86 kB / 421.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.784e-05/0.2832, allocations: 25.64 kB / 421.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.2833, allocations: 0 / 421.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.2833, allocations: 4 kB / 421.5 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.2833, allocations: 7.938 kB / 421.5 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003148/0.2836, allocations: 309.5 kB / 421.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.2836, allocations: 0 / 421.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.2838, allocations: 43.95 kB / 421.9 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2838, allocations: 0 / 421.9 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.2838, allocations: 8 kB / 421.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2838, allocations: 0 / 421.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2838, allocations: 0 / 421.9 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.285, allocations: 368.6 kB / 422.3 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.909e-05/0.2851, allocations: 104.9 kB / 422.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.2851, allocations: 3.984 kB / 422.4 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.2853, allocations: 36.03 kB / 422.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.2854, allocations: 11.98 kB / 422.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.2854, allocations: 11.92 kB / 422.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.2856, allocations: 186 kB / 422.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2856, allocations: 0 / 422.6 MB, free: 4.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003031/0.2859, allocations: 71.78 kB / 422.7 MB, free: 4.633 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.0001504/0.2861, allocations: 111.2 kB / 422.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008301/0.2869, allocations: 287.5 kB / 423.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2869, allocations: 4.062 kB / 423.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.2872, allocations: 103.8 kB / 423.2 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2875, allocations: 44.52 kB / 423.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2887, allocations: 0.5325 MB / 423.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.2891, allocations: 0.748 MB / 424.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.2892, allocations: 30.27 kB / 424.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.671e-05/0.2893, allocations: 27.38 kB / 424.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2893, allocations: 0 / 424.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of Templates: time 0.007141/0.2965, allocations: 3.047 MB / 427.6 MB, free: 15.66 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches