Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001445, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001767/0.001767, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 75.88 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2925, allocations: 62.43 MB / 0.5316 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002501/0.2951, allocations: 1.547 MB / 0.5332 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009511/0.296, allocations: 0.5632 MB / 0.5337 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5e-05/0.2961, allocations: 1.375 kB / 0.5337 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.175e-05/0.2961, allocations: 11.86 kB / 0.5337 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.136e-05/0.2962, allocations: 10.62 kB / 0.5337 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.2964, allocations: 48.12 kB / 0.5338 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.2966, allocations: 88.89 kB / 0.5339 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2967, allocations: 21.45 kB / 0.5339 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.2969, allocations: 42.92 kB / 0.5339 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.864e-05/0.297, allocations: 52.88 kB / 0.534 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.996e-05/0.297, allocations: 6.875 kB / 0.534 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.2971, allocations: 8.656 kB / 0.534 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.2971, allocations: 19.17 kB / 0.534 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.968e-05/0.2971, allocations: 37.77 kB / 0.534 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.2973, allocations: 89.78 kB / 0.5341 GB, free: 11.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2973, allocations: 0 / 0.5341 GB, free: 11.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2973, allocations: 0 / 0.5341 GB, free: 11.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.2973, allocations: 0.875 kB / 0.5341 GB, free: 11.87 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006995/0.298, allocations: 410.8 kB / 0.5345 GB, free: 11.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.2981, allocations: 9.094 kB / 0.5345 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.2982, allocations: 15.44 kB / 0.5345 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.2984, allocations: 184.5 kB / 0.5347 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2985, allocations: 4.312 kB / 0.5347 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.2985, allocations: 13.11 kB / 0.5347 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/0.2987, allocations: 100.9 kB / 0.5348 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2987, allocations: 0 / 0.5348 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2987, allocations: 8.969 kB / 0.5348 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.2988, allocations: 2.219 kB / 0.5348 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.2989, allocations: 44.94 kB / 0.5349 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.2995, allocations: 333.6 kB / 0.5352 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.2997, allocations: 94.06 kB / 0.5353 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2998, allocations: 46.47 kB / 0.5353 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.2998, allocations: 6.25 kB / 0.5353 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.3, allocations: 99.41 kB / 0.5354 GB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.3, allocations: 0 / 0.5354 GB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005309/0.3006, allocations: 197.7 kB / 0.5356 GB, free: 10.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.3006, allocations: 54.16 kB / 0.5357 GB, free: 10.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.941e-05/0.3007, allocations: 124.9 kB / 0.5358 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.3007, allocations: 32.45 kB / 0.5358 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.578e-05/0.3008, allocations: 91.08 kB / 0.5359 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.3008, allocations: 40.98 kB / 0.5359 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.3009, allocations: 42.02 kB / 0.536 GB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.301, allocations: 329.5 kB / 0.5363 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.3011, allocations: 40.59 kB / 0.5363 GB, free: 9.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.3013, allocations: 75.14 kB / 0.5364 GB, free: 9.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.3015, allocations: 123 kB / 0.5365 GB, free: 9.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3015, allocations: 1.5 kB / 0.5365 GB, free: 9.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000281/0.3018, allocations: 166.8 kB / 0.5367 GB, free: 9.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3018, allocations: 5.531 kB / 0.5367 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.3018, allocations: 5 kB / 0.5367 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3018, allocations: 2.531 kB / 0.5367 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.302, allocations: 20.33 kB / 0.5367 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.302, allocations: 13.84 kB / 0.5367 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.443e-05/0.3021, allocations: 12.38 kB / 0.5367 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3021, allocations: 5.969 kB / 0.5368 GB, free: 9.531 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001002/0.3022, allocations: 127.9 kB / 0.5369 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.27e-05/0.3022, allocations: 12.36 kB / 0.5369 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.3023, allocations: 13.56 kB / 0.5369 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3023, allocations: 2.219 kB / 0.5369 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3023, allocations: 3.938 kB / 0.5369 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3023, allocations: 1.156 kB / 0.5369 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005656/0.3029, allocations: 443.9 kB / 0.5373 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3029, allocations: 0 / 0.5373 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.955e-05/0.303, allocations: 17.48 kB / 0.5373 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.303, allocations: 1.438 kB / 0.5373 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.303, allocations: 1.094 kB / 0.5373 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.303, allocations: 5.562 kB / 0.5374 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.303, allocations: 0 / 0.5374 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.3034, allocations: 259.2 kB / 0.5376 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.3034, allocations: 87.3 kB / 0.5377 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.3035, allocations: 6.062 kB / 0.5377 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3036, allocations: 9.578 kB / 0.5377 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.975e-05/0.3036, allocations: 12.39 kB / 0.5377 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.3037, allocations: 8.719 kB / 0.5377 GB, free: 8.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.298e-05/0.3037, allocations: 92.05 kB / 0.5378 GB, free: 8.578 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3037, allocations: 0 / 0.5378 GB, free: 8.578 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.304, allocations: 22.25 kB / 0.5378 GB, free: 8.574 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.789e-05/0.3041, allocations: 97.72 kB / 0.5379 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.3044, allocations: 114.6 kB / 0.538 GB, free: 8.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3044, allocations: 0 / 0.538 GB, free: 8.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.3046, allocations: 68.61 kB / 0.5381 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3048, allocations: 14.94 kB / 0.5381 GB, free: 8.398 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000445/0.3053, allocations: 234.7 kB / 0.5383 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.3056, allocations: 0.692 MB / 0.539 GB, free: 7.488 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.3056, allocations: 18.25 kB / 0.539 GB, free: 7.477 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3056, allocations: 0 / 0.539 GB, free: 7.477 MB / 398.1 MB Notification: Performance of Templates: time 0.003046/0.3087, allocations: 1.279 MB / 0.5403 GB, free: 6.809 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches