Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001564, allocations: 174.9 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 222.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007828/0.0007828, allocations: 90.3 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07706/0.07706, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003923, allocations: 16 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08506/0.08547, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.00131/0.08683, allocations: 1.187 MB / 443.6 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002976/0.08714, allocations: 135.7 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.569e-05/0.08723, allocations: 4 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.55e-05/0.08728, allocations: 11.92 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.08741, allocations: 0 / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.08765, allocations: 27.91 kB / 443.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.406e-05/0.08773, allocations: 23.92 kB / 443.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.08783, allocations: 11.98 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.04e-05/0.08787, allocations: 11.92 kB / 443.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.875e-05/0.0879, allocations: 11.88 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.08793, allocations: 0 / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.108e-05/0.08794, allocations: 8 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.892e-05/0.08798, allocations: 7.984 kB / 443.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.879e-05/0.088, allocations: 33.64 kB / 443.8 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.073e-05/0.08807, allocations: 23.97 kB / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.08808, allocations: 0 / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08808, allocations: 0 / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.08809, allocations: 0 / 443.9 MB, free: 14.95 MB / 298.7 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.0003527/0.08845, allocations: 355.4 kB / 444.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.08849, allocations: 12.03 kB / 444.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.08853, allocations: 11.91 kB / 444.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.08868, allocations: 182.8 kB / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.08871, allocations: 7.984 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.08873, allocations: 3.953 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.08893, allocations: 89.05 kB / 444.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.08895, allocations: 0 / 444.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.08896, allocations: 8 kB / 444.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.08897, allocations: 0 / 444.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.043e-05/0.08903, allocations: 11.98 kB / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002596/0.0893, allocations: 257.8 kB / 444.8 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.802e-05/0.08937, allocations: 45.16 kB / 444.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.143e-05/0.0894, allocations: 25.77 kB / 444.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.08943, allocations: 0 / 444.8 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.241e-05/0.08945, allocations: 30.56 kB / 444.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.08945, allocations: 0 / 444.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000181/0.08964, allocations: 65.53 kB / 444.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.08969, allocations: 81.05 kB / 445 MB, free: 13.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.08977, allocations: 133.8 kB / 445.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.08979, allocations: 29.7 kB / 445.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.08983, allocations: 88.12 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.08984, allocations: 0 / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.08985, allocations: 256 / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.0899, allocations: 318.8 kB / 445.6 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.568e-05/0.08993, allocations: 8 kB / 445.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.286e-05/0.08996, allocations: 17.7 kB / 445.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.08999, allocations: 11.95 kB / 445.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.09, allocations: 0 / 445.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.479e-05/0.09008, allocations: 61.59 kB / 445.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.0901, allocations: 4 kB / 445.7 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.09011, allocations: 3.938 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.09013, allocations: 0 / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.491e-05/0.09015, allocations: 7.938 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.09016, allocations: 0 / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.29e-05/0.09019, allocations: 0 / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.0902, allocations: 4 kB / 445.7 MB, free: 12.85 MB / 298.7 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 (sample.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.09027, allocations: 130.5 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.09031, allocations: 37.55 kB / 445.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.37e-05/0.09034, allocations: 15.48 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.09035, allocations: 0 / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.09036, allocations: 3.984 kB / 445.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.09037, allocations: 4 kB / 445.9 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.09052, allocations: 161.7 kB / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.09054, allocations: 3.953 kB / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-06/0.09055, allocations: 0 / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.09055, allocations: 32 / 446 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.09057, allocations: 4 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.09057, allocations: 4 kB / 446.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.09058, allocations: 3.984 kB / 446.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.09069, allocations: 148.4 kB / 446.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.09074, allocations: 96.84 kB / 446.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.09075, allocations: 12.02 kB / 446.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.969e-05/0.09081, allocations: 4 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.939e-05/0.09085, allocations: 0 / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.09085, allocations: 0 / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.081e-05/0.0909, allocations: 99.27 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09091, allocations: 0 / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.0911, allocations: 8 kB / 446.4 MB, free: 12.03 MB / 298.7 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 (sample.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.97e-05/0.09118, allocations: 99.22 kB / 446.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.294e-05/0.09127, allocations: 16 kB / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.09128, allocations: 0 / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.453e-05/0.09131, allocations: 11.94 kB / 446.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.09162, allocations: 19.95 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002354/0.09187, allocations: 175.5 kB / 446.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.09199, allocations: 0.6887 MB / 447.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.09202, allocations: 7.438 kB / 447.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09202, allocations: 0 / 447.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Templates: time 0.00149/0.09352, allocations: 0.613 MB / 448 MB, free: 10.33 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches