Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 113.8 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 210.7 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 79.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3073, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002584/0.31, allocations: 1.627 MB / 0.5332 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009063/0.3109, allocations: 0.514 MB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.311, allocations: 1.812 kB / 0.5337 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.3111, allocations: 15.86 kB / 0.5337 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.29e-05/0.3111, allocations: 13.67 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.3113, allocations: 35 kB / 0.5338 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.3115, allocations: 72.95 kB / 0.5339 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.3116, allocations: 41.19 kB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.106e-05/0.3117, allocations: 25.48 kB / 0.5339 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.231e-05/0.3117, allocations: 34.72 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.3118, allocations: 5.5 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.439e-05/0.3118, allocations: 10.81 kB / 0.534 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.3118, allocations: 10.69 kB / 0.534 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.309e-05/0.3119, allocations: 36.05 kB / 0.534 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.312, allocations: 77.39 kB / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.312, allocations: 0 / 0.5341 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.312, allocations: 5.375 kB / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.312, allocations: 0 / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005606/0.3126, allocations: 395.2 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.3126, allocations: 12.19 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.3127, allocations: 10.34 kB / 0.5345 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.3129, allocations: 199.1 kB / 0.5347 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.3129, allocations: 3.125 kB / 0.5347 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.3129, allocations: 9.875 kB / 0.5347 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.3131, allocations: 79.98 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.3131, allocations: 0 / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.3132, allocations: 1.375 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3132, allocations: 1.375 kB / 0.5348 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.011e-05/0.3133, allocations: 41.75 kB / 0.5348 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.3138, allocations: 347.2 kB / 0.5352 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.3139, allocations: 52.38 kB / 0.5352 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.839e-05/0.314, allocations: 15.73 kB / 0.5352 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.314, allocations: 5.406 kB / 0.5352 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000111/0.3141, allocations: 65.14 kB / 0.5353 GB, free: 10.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3141, allocations: 0 / 0.5353 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002189/0.3144, allocations: 95.83 kB / 0.5354 GB, free: 10.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.3144, allocations: 56.78 kB / 0.5354 GB, free: 10.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3145, allocations: 135.7 kB / 0.5356 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.3146, allocations: 31.08 kB / 0.5356 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.3146, allocations: 100.2 kB / 0.5357 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.3146, allocations: 14.56 kB / 0.5357 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.3147, allocations: 25.95 kB / 0.5357 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3148, allocations: 321.6 kB / 0.536 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.765e-05/0.3148, allocations: 12.25 kB / 0.536 GB, free: 9.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.78e-05/0.3149, allocations: 46.88 kB / 0.5361 GB, free: 9.684 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.006e-05/0.315, allocations: 48.27 kB / 0.5361 GB, free: 9.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.315, allocations: 0 / 0.5361 GB, free: 9.645 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001332/0.3151, allocations: 99.08 kB / 0.5362 GB, free: 9.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.3152, allocations: 5.938 kB / 0.5362 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3152, allocations: 5.219 kB / 0.5362 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3152, allocations: 5.469 kB / 0.5362 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-05/0.3153, allocations: 10.12 kB / 0.5363 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3153, allocations: 1.094 kB / 0.5363 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.922e-05/0.3154, allocations: 20.5 kB / 0.5363 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.3154, allocations: 6.625 kB / 0.5363 GB, free: 9.543 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 7.504e-05/0.3155, allocations: 117.6 kB / 0.5364 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.3155, allocations: 7.656 kB / 0.5364 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.3155, allocations: 14.97 kB / 0.5364 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3156, allocations: 9.219 kB / 0.5364 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3156, allocations: 0 / 0.5364 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3156, allocations: 0 / 0.5364 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.3159, allocations: 348.8 kB / 0.5368 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3159, allocations: 0 / 0.5368 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.866e-05/0.316, allocations: 8.234 kB / 0.5368 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.316, allocations: 4.766 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.316, allocations: 1.031 kB / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.316, allocations: 0 / 0.5368 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.316, allocations: 4.906 kB / 0.5368 GB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/0.3163, allocations: 189.2 kB / 0.537 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.3163, allocations: 83.67 kB / 0.537 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.3164, allocations: 1.344 kB / 0.537 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.3165, allocations: 14.45 kB / 0.537 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.3165, allocations: 8.266 kB / 0.5371 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.3165, allocations: 2.188 kB / 0.5371 GB, free: 8.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.676e-05/0.3166, allocations: 109.5 kB / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3166, allocations: 0 / 0.5372 GB, free: 8.664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002407/0.3169, allocations: 23.06 kB / 0.5372 GB, free: 8.652 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001307/0.317, allocations: 91.94 kB / 0.5373 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.3171, allocations: 48.08 kB / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3171, allocations: 0 / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.083e-05/0.3172, allocations: 22.27 kB / 0.5373 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.3175, allocations: 27.81 kB / 0.5374 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000497/0.318, allocations: 223.9 kB / 0.5376 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.3183, allocations: 0.6933 MB / 0.5383 GB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.282e-05/0.3184, allocations: 21.09 kB / 0.5383 GB, free: 7.605 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3184, allocations: 0 / 0.5383 GB, free: 7.605 MB / 398.1 MB Notification: Performance of Templates: time 0.002906/0.3213, allocations: 1.163 MB / 0.5394 GB, free: 7 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches