Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2883, allocations: 50.54 MB / 409.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004654/0.293, allocations: 2.877 MB / 412.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.2948, allocations: 0.7479 MB / 412.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003862/0.2953, allocations: 4 kB / 412.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.2956, allocations: 47.52 kB / 413 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003787/0.296, allocations: 107.2 kB / 413.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.2964, allocations: 115.8 kB / 413.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006309/0.297, allocations: 390.5 kB / 413.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.2973, allocations: 123.2 kB / 413.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003963/0.2977, allocations: 155.4 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.298, allocations: 171.2 kB / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.328e-05/0.2981, allocations: 36 kB / 414 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.461e-05/0.2982, allocations: 40 kB / 414.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.48e-05/0.2983, allocations: 79.73 kB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.2985, allocations: 163.2 kB / 414.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004896/0.299, allocations: 431.6 kB / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.299, allocations: 0 / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.299, allocations: 0 / 414.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.299, allocations: 4 kB / 414.7 MB, free: 12.13 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.001444/0.3004, allocations: 0.6575 MB / 415.4 MB, free: 11.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3005, allocations: 12.03 kB / 415.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.3006, allocations: 32.56 kB / 415.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.3011, allocations: 288.7 kB / 415.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.3012, allocations: 16.94 kB / 415.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.363e-05/0.3012, allocations: 24.36 kB / 415.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.3019, allocations: 323.9 kB / 416.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.302, allocations: 0 / 416.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.302, allocations: 12 kB / 416.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.302, allocations: 4 kB / 416.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007885/0.3028, allocations: 278.1 kB / 416.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.3049, allocations: 1.107 MB / 417.5 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009162/0.3058, allocations: 250.5 kB / 417.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.3061, allocations: 104.8 kB / 417.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.3062, allocations: 0 / 417.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004541/0.3066, allocations: 165 kB / 418 MB, free: 8.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.774e-06/0.3067, allocations: 0 / 418 MB, free: 8.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001083/0.3077, allocations: 321.2 kB / 418.3 MB, free: 8.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.3078, allocations: 77.11 kB / 418.4 MB, free: 8.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.3081, allocations: 274.5 kB / 418.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3082, allocations: 29.7 kB / 418.7 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.3083, allocations: 191.5 kB / 418.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.3084, allocations: 43.45 kB / 418.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.3085, allocations: 49.7 kB / 418.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3086, allocations: 334.8 kB / 419.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.309, allocations: 104.2 kB / 419.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003852/0.3094, allocations: 191.5 kB / 419.5 MB, free: 6.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.3101, allocations: 299.8 kB / 419.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3101, allocations: 4 kB / 419.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009149/0.311, allocations: 366.9 kB / 420.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/0.3111, allocations: 32.52 kB / 420.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.3111, allocations: 4 kB / 420.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.3111, allocations: 4 kB / 420.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.3114, allocations: 71.88 kB / 420.3 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.3114, allocations: 11.92 kB / 420.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.3118, allocations: 55.72 kB / 420.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.3118, allocations: 11.94 kB / 420.4 MB, free: 6.09 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.0001918/0.312, allocations: 153.4 kB / 420.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.3121, allocations: 27.66 kB / 420.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.567e-05/0.3121, allocations: 21.7 kB / 420.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3121, allocations: 0 / 420.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3122, allocations: 8 kB / 420.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3122, allocations: 3.938 kB / 420.6 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/0.3126, allocations: 313.4 kB / 420.9 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3126, allocations: 4 kB / 420.9 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.3128, allocations: 39.95 kB / 420.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3129, allocations: 4 kB / 421 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.3129, allocations: 4 kB / 421 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3129, allocations: 0 / 421 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3129, allocations: 3.984 kB / 421 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.3139, allocations: 376.8 kB / 421.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/0.314, allocations: 104.9 kB / 421.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.792e-05/0.3141, allocations: 0 / 421.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.3143, allocations: 35.95 kB / 421.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.3144, allocations: 11.98 kB / 421.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.3144, allocations: 12 kB / 421.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.3146, allocations: 190 kB / 421.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3146, allocations: 0 / 421.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.315, allocations: 71.75 kB / 421.7 MB, free: 4.637 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.000145/0.3151, allocations: 95.25 kB / 421.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007905/0.3159, allocations: 299 kB / 422.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3159, allocations: 0 / 422.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.3162, allocations: 108.5 kB / 422.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.3166, allocations: 40.48 kB / 422.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3178, allocations: 0.5213 MB / 422.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.3181, allocations: 0.7479 MB / 423.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.3183, allocations: 26.23 kB / 423.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.884e-05/0.3183, allocations: 27.42 kB / 423.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3183, allocations: 0 / 423.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of Templates: time 0.007021/0.3254, allocations: 3.036 MB / 426.6 MB, free: 15.7 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches