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.001486/0.001486, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001856/0.001856, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 64.36 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07364/0.07472, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.003411/0.07816, allocations: 2.86 MB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009901/0.07917, allocations: 0.7674 MB / 362.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.07929, allocations: 8 kB / 362.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.07943, allocations: 43.56 kB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.07959, allocations: 99.19 kB / 362.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.07984, allocations: 111.8 kB / 362.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.08018, allocations: 386.5 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.08038, allocations: 135.2 kB / 363.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.08061, allocations: 163.4 kB / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.08079, allocations: 163.3 kB / 363.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.08084, allocations: 40 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.529e-05/0.08089, allocations: 36 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.871e-05/0.08095, allocations: 75.7 kB / 363.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.08109, allocations: 167.2 kB / 363.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.08141, allocations: 422.6 kB / 364.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.08142, allocations: 4 kB / 364.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.08143, allocations: 0 / 364.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.08144, allocations: 0 / 364.4 MB, free: 7.848 MB / 302.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.00105/0.08249, allocations: 0.6653 MB / 365 MB, free: 7.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.08253, allocations: 8.031 kB / 365 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.145e-05/0.08259, allocations: 32.56 kB / 365.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.0829, allocations: 292.6 kB / 365.4 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.08293, allocations: 20.94 kB / 365.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.08298, allocations: 24.38 kB / 365.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005926/0.08358, allocations: 319.9 kB / 365.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.0836, allocations: 0 / 365.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.08363, allocations: 12 kB / 365.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.08364, allocations: 7.938 kB / 365.7 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006858/0.08433, allocations: 274.1 kB / 366 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.08583, allocations: 1.107 MB / 367.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/0.0866, allocations: 250.6 kB / 367.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.08689, allocations: 104.7 kB / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.08692, allocations: 4 kB / 367.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.08731, allocations: 172.9 kB / 367.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.08733, allocations: 0 / 367.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009019/0.08823, allocations: 313.5 kB / 367.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.08829, allocations: 85.03 kB / 368 MB, free: 3.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.08852, allocations: 262.6 kB / 368.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.08854, allocations: 25.7 kB / 368.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.08866, allocations: 203.5 kB / 368.5 MB, free: 3.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.08869, allocations: 35.55 kB / 368.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/0.08877, allocations: 53.55 kB / 368.6 MB, free: 3.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.08887, allocations: 338.8 kB / 368.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.08918, allocations: 100.2 kB / 369 MB, free: 2.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.08952, allocations: 190.3 kB / 369.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005932/0.09013, allocations: 311.7 kB / 369.5 MB, free: 2.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.09014, allocations: 0 / 369.5 MB, free: 2.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007466/0.09089, allocations: 365.8 kB / 369.9 MB, free: 1.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.09093, allocations: 37.69 kB / 369.9 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.09094, allocations: 0 / 369.9 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.09095, allocations: 4 kB / 369.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.09122, allocations: 63.89 kB / 370 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.09124, allocations: 8.094 kB / 370 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.0915, allocations: 51.73 kB / 370 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.09153, allocations: 12 kB / 370 MB, free: 1.797 MB / 302.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.0001139/0.09165, allocations: 145.7 kB / 370.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.09168, allocations: 27.7 kB / 370.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.09174, allocations: 25.7 kB / 370.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.09174, allocations: 8 kB / 370.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.09175, allocations: 0 / 370.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.09176, allocations: 3.938 kB / 370.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.09199, allocations: 309.5 kB / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.092, allocations: 0 / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.09223, allocations: 47.89 kB / 370.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.09224, allocations: 4 kB / 370.6 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.09226, allocations: 0 / 370.6 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.09227, allocations: 4 kB / 370.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.09227, allocations: 0 / 370.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.09318, allocations: 372.5 kB / 371 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.09326, allocations: 104.8 kB / 371.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.0933, allocations: 4 kB / 371.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.09351, allocations: 27.97 kB / 371.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.09357, allocations: 20.05 kB / 371.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.09359, allocations: 11.92 kB / 371.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.09375, allocations: 190 kB / 371.3 MB, free: 432 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09375, allocations: 0 / 371.3 MB, free: 432 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.09402, allocations: 63.84 kB / 371.4 MB, free: 368 kB / 302.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 9.496e-05/0.09412, allocations: 99.19 kB / 371.5 MB, free: 260 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1107/0.2048, allocations: 297.1 kB / 371.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.2049, allocations: 1.844 kB / 371.8 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.2053, allocations: 105.5 kB / 371.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.2056, allocations: 44.75 kB / 371.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.2068, allocations: 0.5142 MB / 372.4 MB, free: 20.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.207, allocations: 0.7469 MB / 373.2 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.2071, allocations: 26.61 kB / 373.2 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.174e-05/0.2071, allocations: 21.89 kB / 373.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2071, allocations: 0 / 373.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of Templates: time 0.02835/0.2355, allocations: 3.017 MB / 376.2 MB, free: 19.42 MB / 302.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 -s gbode -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/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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches