Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 176.7 kB / 15.82 MB, free: 6.305 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.46/1.46, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007898/0.0007901, allocations: 86.36 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06687/0.06687, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004436, allocations: 16.16 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.09412, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001369/0.09553, allocations: 1.181 MB / 443.7 MB, free: 9.656 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0002669/0.09582, allocations: 143.7 kB / 443.8 MB, free: 9.516 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.099e-05/0.0959, allocations: 4 kB / 443.8 MB, free: 9.512 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 2.484e-05/0.09593, allocations: 7.922 kB / 443.8 MB, free: 9.504 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.09604, allocations: 0 / 443.8 MB, free: 9.504 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.09624, allocations: 37.41 kB / 443.9 MB, free: 9.469 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 6.135e-05/0.09631, allocations: 19.92 kB / 443.9 MB, free: 9.449 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 7.41e-05/0.09639, allocations: 11.94 kB / 443.9 MB, free: 9.438 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 2.488e-05/0.09642, allocations: 7.938 kB / 443.9 MB, free: 9.43 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 2.734e-05/0.09645, allocations: 11.92 kB / 443.9 MB, free: 9.418 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.09647, allocations: 4 kB / 443.9 MB, free: 9.414 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.094e-05/0.09649, allocations: 4 kB / 443.9 MB, free: 9.41 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.09652, allocations: 11.94 kB / 443.9 MB, free: 9.398 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.09655, allocations: 25.7 kB / 444 MB, free: 9.367 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 6.14e-05/0.09661, allocations: 32.5 kB / 444 MB, free: 9.336 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.09662, allocations: 0 / 444 MB, free: 9.336 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09663, allocations: 0 / 444 MB, free: 9.336 MB / 282.8 MB Notification: Performance of Transformations before backend: time 2.996e-06/0.09664, allocations: 0 / 444 MB, free: 9.336 MB / 282.8 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.0002977/0.09694, allocations: 351.4 kB / 444.3 MB, free: 8.945 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.09698, allocations: 12.03 kB / 444.4 MB, free: 8.934 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.514e-05/0.09701, allocations: 38.5 kB / 444.4 MB, free: 8.887 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.09704, allocations: 7.906 kB / 444.4 MB, free: 8.879 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.09717, allocations: 182.8 kB / 444.6 MB, free: 8.66 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.0972, allocations: 7.938 kB / 444.6 MB, free: 8.652 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-06/0.09721, allocations: 8 kB / 444.6 MB, free: 8.645 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.09738, allocations: 89.05 kB / 444.7 MB, free: 8.539 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.0974, allocations: 0 / 444.7 MB, free: 8.539 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.09741, allocations: 0 / 444.7 MB, free: 8.539 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.09742, allocations: 0 / 444.7 MB, free: 8.539 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.006e-05/0.09747, allocations: 15.98 kB / 444.7 MB, free: 8.523 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002219/0.0977, allocations: 261.7 kB / 444.9 MB, free: 8.215 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 5.476e-05/0.09777, allocations: 49.14 kB / 445 MB, free: 8.148 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.085e-05/0.09781, allocations: 13.78 kB / 445 MB, free: 8.129 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.09783, allocations: 7.938 kB / 445 MB, free: 8.121 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.603e-05/0.09785, allocations: 34.56 kB / 445.1 MB, free: 8.078 MB / 282.8 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.09786, allocations: 4 kB / 445.1 MB, free: 8.074 MB / 282.8 MB Notification: Performance of matching and sorting (n=2): time 0.0001708/0.09804, allocations: 61.53 kB / 445.1 MB, free: 8.008 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.09808, allocations: 77.11 kB / 445.2 MB, free: 7.914 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.59e-05/0.09817, allocations: 133.8 kB / 445.3 MB, free: 7.773 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.09818, allocations: 25.7 kB / 445.3 MB, free: 7.742 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.09823, allocations: 84.38 kB / 445.4 MB, free: 7.656 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.117e-06/0.09825, allocations: 8 kB / 445.4 MB, free: 7.648 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.09826, allocations: 0 / 445.4 MB, free: 7.648 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 4.847e-05/0.09831, allocations: 318.8 kB / 445.7 MB, free: 7.328 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.678e-05/0.09834, allocations: 4 kB / 445.8 MB, free: 7.324 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.316e-05/0.09837, allocations: 17.7 kB / 445.8 MB, free: 7.301 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.09841, allocations: 12.06 kB / 445.8 MB, free: 7.289 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.09842, allocations: 4 kB / 445.8 MB, free: 7.285 MB / 282.8 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.359e-05/0.09849, allocations: 53.53 kB / 445.8 MB, free: 7.227 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.09851, allocations: 4 kB / 445.8 MB, free: 7.223 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.09852, allocations: 4 kB / 445.8 MB, free: 7.219 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.09854, allocations: 0 / 445.8 MB, free: 7.219 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.304e-05/0.09856, allocations: 4 kB / 445.8 MB, free: 7.215 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.09857, allocations: 0 / 445.8 MB, free: 7.215 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.518e-05/0.0986, allocations: 4 kB / 445.9 MB, free: 7.211 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-06/0.09861, allocations: 4.062 kB / 445.9 MB, free: 7.207 MB / 282.8 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 5.497e-05/0.09867, allocations: 125.5 kB / 446 MB, free: 7.074 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.09872, allocations: 37.7 kB / 446 MB, free: 7.031 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.127e-05/0.09874, allocations: 7.484 kB / 446 MB, free: 7.023 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.09875, allocations: 4 kB / 446 MB, free: 7.02 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09876, allocations: 3.984 kB / 446 MB, free: 7.016 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.09877, allocations: 0 / 446 MB, free: 7.016 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.09888, allocations: 177.5 kB / 446.2 MB, free: 6.793 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.09889, allocations: 4.031 kB / 446.2 MB, free: 6.789 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-06/0.0989, allocations: 0 / 446.2 MB, free: 6.789 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.0989, allocations: 4 kB / 446.2 MB, free: 6.785 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.09891, allocations: 0 / 446.2 MB, free: 6.785 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.09892, allocations: 3.938 kB / 446.2 MB, free: 6.781 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.09892, allocations: 3.984 kB / 446.2 MB, free: 6.777 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.97e-05/0.09903, allocations: 156.3 kB / 446.4 MB, free: 6.605 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.09907, allocations: 88.97 kB / 446.5 MB, free: 6.5 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.09908, allocations: 7.984 kB / 446.5 MB, free: 6.492 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.236e-05/0.09914, allocations: 0 / 446.5 MB, free: 6.492 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.09918, allocations: 0 / 446.5 MB, free: 6.492 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.09918, allocations: 4 kB / 446.5 MB, free: 6.488 MB / 282.8 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.09923, allocations: 99.27 kB / 446.6 MB, free: 6.391 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09923, allocations: 0 / 446.6 MB, free: 6.391 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002003/0.09944, allocations: 4 kB / 446.6 MB, free: 6.387 MB / 282.8 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 0.0002327/0.09968, allocations: 0.6975 MB / 447.3 MB, free: 5.66 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 8.245e-05/0.09977, allocations: 20.09 kB / 447.3 MB, free: 5.641 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09978, allocations: 0 / 447.3 MB, free: 5.641 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 2.278e-05/0.0998, allocations: 7.984 kB / 447.3 MB, free: 5.633 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.1001, allocations: 19.72 kB / 447.3 MB, free: 5.617 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004994/0.1006, allocations: 420.5 kB / 447.7 MB, free: 5.148 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.608e-05/0.1007, allocations: 0.6848 MB / 448.4 MB, free: 4.438 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 2.058e-05/0.1007, allocations: 4 kB / 448.4 MB, free: 4.434 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.6e-05/0.1008, allocations: 11.44 kB / 448.4 MB, free: 4.422 MB / 282.8 MB Notification: Performance of SimCode: time 2.11e-07/0.1008, allocations: 0 / 448.4 MB, free: 4.422 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01083/0.1116, allocations: 1.158 MB / 449.6 MB, free: 3.277 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.1119, allocations: 228.9 kB / 449.8 MB, free: 3.023 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.551/1.663, allocations: 0 / 449.8 MB, free: 3.023 MB / 282.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat