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.0007728/0.0007728, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008881/0.0008883, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1897/0.1897, allocations: 46.18 MB / 345.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 11.98 kB / 420.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.09557, allocations: 63.55 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001691/0.09729, allocations: 1.267 MB / 485 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009514/0.09826, allocations: 0.5339 MB / 485.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.841e-05/0.09835, allocations: 3.938 kB / 485.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.09838, allocations: 3.938 kB / 485.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.444e-05/0.09848, allocations: 23.84 kB / 485.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.09872, allocations: 43.89 kB / 485.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.09887, allocations: 79.78 kB / 485.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.348e-05/0.09897, allocations: 11.98 kB / 485.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.09912, allocations: 43.78 kB / 485.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.116e-05/0.09921, allocations: 39.83 kB / 485.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.09924, allocations: 4 kB / 485.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.647e-05/0.09929, allocations: 12 kB / 485.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.629e-05/0.09933, allocations: 23.91 kB / 485.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.882e-05/0.0994, allocations: 61.5 kB / 485.9 MB, free: 2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.09951, allocations: 44.17 kB / 485.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09952, allocations: 4 kB / 485.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09953, allocations: 0 / 485.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.09954, allocations: 0 / 485.9 MB, free: 1.953 MB / 350.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.0006346/0.1002, allocations: 403.2 kB / 486.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1002, allocations: 12.88 kB / 486.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.1004, allocations: 16.84 kB / 486.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.1006, allocations: 196.1 kB / 486.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1006, allocations: 8.375 kB / 486.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.1006, allocations: 8.359 kB / 486.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.1009, allocations: 97.95 kB / 486.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.1009, allocations: 0 / 486.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1009, allocations: 0 / 486.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.1009, allocations: 4 kB / 486.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.1011, allocations: 47.97 kB / 486.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005353/0.1016, allocations: 340.6 kB / 487 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.1018, allocations: 98.53 kB / 487.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.102, allocations: 52.84 kB / 487.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.102, allocations: 4 kB / 487.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.1022, allocations: 114.9 kB / 487.3 MB, free: 428 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 3.316e-06/0.1022, allocations: 3.984 kB / 487.3 MB, free: 424 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004856/0.1027, allocations: 201.8 kB / 487.5 MB, free: 216 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.1028, allocations: 55.41 kB / 487.5 MB, free: 148 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.696e-05/0.1029, allocations: 121.8 kB / 487.7 MB, free: 16 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.1029, allocations: 33.7 kB / 487.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.158e-05/0.103, allocations: 88.42 kB / 487.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.103, allocations: 39.53 kB / 487.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.1031, allocations: 25.7 kB / 487.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1032, allocations: 330.8 kB / 488.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1033, allocations: 39.98 kB / 488.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.1034, allocations: 80.2 kB / 488.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.1037, allocations: 128.2 kB / 488.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1037, allocations: 4 kB / 488.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003032/0.104, allocations: 165.4 kB / 488.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.104, allocations: 4 kB / 488.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.104, allocations: 3.984 kB / 488.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.104, allocations: 4 kB / 488.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1042, allocations: 23.92 kB / 488.6 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1042, allocations: 7.938 kB / 488.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.79e-05/0.1043, allocations: 19.97 kB / 488.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.1043, allocations: 8 kB / 488.6 MB, free: 14.96 MB / 366.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.0001038/0.1044, allocations: 128 kB / 488.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.1044, allocations: 11.89 kB / 488.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.892e-05/0.1045, allocations: 8.5 kB / 488.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1045, allocations: 4 kB / 488.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.1045, allocations: 3.938 kB / 488.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1045, allocations: 0 / 488.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005711/0.1051, allocations: 465.7 kB / 489.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1051, allocations: 0 / 489.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.254e-05/0.1051, allocations: 8 kB / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1051, allocations: 3.938 kB / 489.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.1052, allocations: 3.984 kB / 489.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1052, allocations: 0 / 489.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1052, allocations: 7.938 kB / 489.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.1055, allocations: 263.3 kB / 489.5 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.1056, allocations: 92.89 kB / 489.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.1056, allocations: 7.984 kB / 489.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1057, allocations: 19.98 kB / 489.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.1058, allocations: 4 kB / 489.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.1058, allocations: 11.98 kB / 489.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.589e-05/0.1059, allocations: 91.27 kB / 489.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1059, allocations: 0 / 489.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.1061, allocations: 24 kB / 489.8 MB, free: 13.73 MB / 366.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.913e-05/0.1062, allocations: 95.72 kB / 489.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002774/0.1065, allocations: 119.9 kB / 490 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1065, allocations: 7.938 kB / 490 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.1067, allocations: 47.98 kB / 490 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.107, allocations: 26.16 kB / 490.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004349/0.1074, allocations: 262.8 kB / 490.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.1077, allocations: 0.7004 MB / 491 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.063e-05/0.1077, allocations: 19.38 kB / 491 MB, free: 12.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1077, allocations: 4 kB / 491 MB, free: 12.4 MB / 366.1 MB Notification: Performance of Templates: time 0.002697/0.1104, allocations: 1.225 MB / 492.3 MB, free: 11.18 MB / 366.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