Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001192, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.5 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1265, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.004135/0.1307, allocations: 1.637 MB / 359.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.1324, allocations: 0.5765 MB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.1326, allocations: 0 / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.032e-05/0.1327, allocations: 11.86 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1329, allocations: 19.86 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.1334, allocations: 67.73 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.1336, allocations: 63.8 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1337, allocations: 28.19 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.1339, allocations: 39.86 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.1e-05/0.134, allocations: 35.78 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.018e-05/0.134, allocations: 4 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.102e-05/0.1341, allocations: 8 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.1342, allocations: 23.91 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.215e-05/0.1342, allocations: 35.75 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.1344, allocations: 75.7 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1344, allocations: 0 / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1344, allocations: 0 / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1345, allocations: 0 / 360.2 MB, free: 11.38 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006458/0.1351, allocations: 399.3 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.1352, allocations: 12.03 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.1352, allocations: 34.73 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.1354, allocations: 28.73 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.1357, allocations: 207.6 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1357, allocations: 4.375 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.1357, allocations: 11.94 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.1361, allocations: 137 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1361, allocations: 0 / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1361, allocations: 4 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1361, allocations: 4 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.1363, allocations: 31.91 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006295/0.1369, allocations: 305.6 kB / 361.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.1372, allocations: 154.2 kB / 361.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.558e-05/0.1374, allocations: 41.8 kB / 361.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1374, allocations: 8.062 kB / 361.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00024/0.1376, allocations: 63.39 kB / 361.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 4.208e-06/0.1377, allocations: 0 / 361.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000382/0.138, allocations: 121.3 kB / 361.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.1381, allocations: 85.11 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.1383, allocations: 157.6 kB / 362 MB, free: 9.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.1384, allocations: 25.7 kB / 362 MB, free: 9.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.069e-05/0.1384, allocations: 92.14 kB / 362.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.1385, allocations: 19.8 kB / 362.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.1385, allocations: 25.72 kB / 362.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1387, allocations: 318.8 kB / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/0.1388, allocations: 23.98 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.492e-05/0.1389, allocations: 57.14 kB / 362.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.139, allocations: 85.33 kB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.139, allocations: 3.938 kB / 362.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002192/0.1393, allocations: 117.4 kB / 362.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1393, allocations: 8 kB / 362.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1393, allocations: 0 / 362.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1393, allocations: 8.156 kB / 362.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.354e-05/0.1394, allocations: 19.86 kB / 362.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1394, allocations: 4 kB / 362.8 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.911e-05/0.1395, allocations: 4 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.1395, allocations: 4 kB / 362.8 MB, free: 8.484 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001098/0.1397, allocations: 133.7 kB / 362.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.357e-05/0.1397, allocations: 57.64 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.1398, allocations: 20.33 kB / 363 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1398, allocations: 3.938 kB / 363 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.1398, allocations: 8 kB / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1398, allocations: 0 / 363 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.1402, allocations: 338.5 kB / 363.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1402, allocations: 4 kB / 363.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.224e-05/0.1403, allocations: 15.92 kB / 363.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1403, allocations: 3.938 kB / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.1403, allocations: 0 / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1403, allocations: 0 / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1404, allocations: 8 kB / 363.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.1406, allocations: 204.2 kB / 363.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.629e-05/0.1407, allocations: 92.94 kB / 363.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.1407, allocations: 8 kB / 363.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.187e-05/0.1408, allocations: 0 / 363.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.1409, allocations: 7.984 kB / 363.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.1409, allocations: 8.125 kB / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.925e-05/0.141, allocations: 114.6 kB / 363.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.141, allocations: 0 / 363.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.1412, allocations: 15.91 kB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0007678/0.142, allocations: 0.7797 MB / 364.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000221/0.1423, allocations: 67.91 kB / 364.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1423, allocations: 0 / 364.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.646e-05/0.1423, allocations: 23.92 kB / 364.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.1427, allocations: 31.09 kB / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.1446, allocations: 1.548 MB / 366.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.145, allocations: 0.7158 MB / 367 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.038e-05/0.145, allocations: 4.438 kB / 367 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.1451, allocations: 23.42 kB / 367 MB, free: 3.992 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1451, allocations: 0 / 367 MB, free: 3.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.1674, allocations: 1.996 MB / 369 MB, free: 2.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/7.957, allocations: 7.922 kB / 369 MB, free: 2.109 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches