Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009435/0.0009436, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.7 MB / 247.5 MB, free: 9.672 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 4 kB / 308.4 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1003, allocations: 51.53 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001768/0.1021, allocations: 1.208 MB / 361.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003721/0.1025, allocations: 131.6 kB / 361.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.316e-05/0.1026, allocations: 4 kB / 361.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.392e-05/0.1026, allocations: 3.938 kB / 361.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.1028, allocations: 3.984 kB / 361.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.103, allocations: 35.86 kB / 361.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.842e-05/0.1032, allocations: 31.91 kB / 361.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.1033, allocations: 8 kB / 361.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.337e-05/0.1033, allocations: 11.92 kB / 361.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.153e-05/0.1033, allocations: 11.94 kB / 361.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.802e-05/0.1034, allocations: 0 / 361.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.1034, allocations: 0 / 361.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.1034, allocations: 15.94 kB / 361.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.264e-05/0.1035, allocations: 45.56 kB / 361.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.27e-05/0.1036, allocations: 27.88 kB / 361.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1036, allocations: 0 / 361.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1036, allocations: 0 / 361.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1036, allocations: 0 / 361.4 MB, free: 11.53 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004252/0.104, allocations: 343.6 kB / 361.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1041, allocations: 12.03 kB / 361.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.1041, allocations: 8.844 kB / 361.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.1043, allocations: 192.1 kB / 362 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.1043, allocations: 384 / 362 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.1044, allocations: 4.375 kB / 362 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.1046, allocations: 89.62 kB / 362.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1046, allocations: 8.172 kB / 362.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1046, allocations: 3.938 kB / 362.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1046, allocations: 3.984 kB / 362.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.987e-05/0.1047, allocations: 16 kB / 362.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003441/0.1051, allocations: 261.7 kB / 362.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.511e-05/0.1052, allocations: 45.16 kB / 362.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.027e-05/0.1052, allocations: 17.78 kB / 362.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1052, allocations: 0 / 362.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.1053, allocations: 34.5 kB / 362.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.1053, allocations: 4 kB / 362.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000215/0.1055, allocations: 57.67 kB / 362.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.1055, allocations: 85.05 kB / 362.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.1057, allocations: 125.8 kB / 362.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.1057, allocations: 29.7 kB / 362.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/0.1058, allocations: 88.05 kB / 362.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.155e-06/0.1058, allocations: 8.188 kB / 362.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.1058, allocations: 9.719 kB / 362.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.106, allocations: 322.8 kB / 363.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.04e-05/0.106, allocations: 4 kB / 363.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.1061, allocations: 13.72 kB / 363.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.342e-05/0.1061, allocations: 33.7 kB / 363.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1062, allocations: 0 / 363.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001001/0.1063, allocations: 57.56 kB / 363.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1063, allocations: 4 kB / 363.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1063, allocations: 0 / 363.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1063, allocations: 4 kB / 363.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.409e-05/0.1063, allocations: 0 / 363.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1063, allocations: 3.938 kB / 363.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.508e-05/0.1064, allocations: 8.062 kB / 363.3 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1064, allocations: 0 / 363.3 MB, free: 9.398 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.251e-05/0.1065, allocations: 125.7 kB / 363.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.721e-05/0.1066, allocations: 37.61 kB / 363.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.1066, allocations: 11.48 kB / 363.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1066, allocations: 4 kB / 363.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1066, allocations: 0 / 363.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1066, allocations: 0 / 363.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.1068, allocations: 173.6 kB / 363.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1068, allocations: 0 / 363.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-06/0.1068, allocations: 0 / 363.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1068, allocations: 4 kB / 363.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.1068, allocations: 0 / 363.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1068, allocations: 0 / 363.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1069, allocations: 0 / 363.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.1071, allocations: 164.2 kB / 363.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.1072, allocations: 85.09 kB / 363.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.1072, allocations: 4 kB / 363.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.544e-05/0.1072, allocations: 0 / 363.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.1073, allocations: 7.984 kB / 363.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1073, allocations: 4 kB / 363.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.31e-05/0.1074, allocations: 101.7 kB / 364 MB, free: 8.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.1074, allocations: 0 / 364 MB, free: 8.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.1076, allocations: 7.969 kB / 364 MB, free: 8.578 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001254/0.1077, allocations: 103.2 kB / 364.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.1079, allocations: 19.92 kB / 364.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1079, allocations: 0 / 364.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.365e-05/0.1079, allocations: 4 kB / 364.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.1084, allocations: 26.81 kB / 364.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004062/0.1089, allocations: 187.1 kB / 364.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.1092, allocations: 0.6848 MB / 365 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.1093, allocations: 11.44 kB / 365.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1093, allocations: 0 / 365.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of Templates: time 0.002757/0.112, allocations: 0.6169 MB / 365.7 MB, free: 6.867 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches