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.00115/0.00115, allocations: 171.5 kB / 16.15 MB, free: 5.652 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.494/1.494, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0007827/0.0007826, allocations: 86.36 kB / 270.7 MB, free: 8.25 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.08083/0.08083, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004529, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09416, allocations: 50.36 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001578/0.0958, allocations: 1.199 MB / 444.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003406/0.09617, allocations: 135.6 kB / 444.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.995e-05/0.09629, allocations: 0 / 444.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.221e-05/0.09634, allocations: 4 kB / 444.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.09646, allocations: 3.938 kB / 444.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.09673, allocations: 39.91 kB / 444.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.357e-05/0.09681, allocations: 23.92 kB / 444.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.399e-05/0.09691, allocations: 11.94 kB / 444.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.196e-05/0.09695, allocations: 11.92 kB / 444.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.964e-05/0.09699, allocations: 15.94 kB / 444.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.09701, allocations: 3.938 kB / 444.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.09703, allocations: 4 kB / 444.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.887e-05/0.09708, allocations: 7.984 kB / 444.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.09712, allocations: 45.5 kB / 444.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.804e-05/0.09721, allocations: 32.19 kB / 444.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09722, allocations: 0 / 444.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.09723, allocations: 0 / 444.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.09724, allocations: 0 / 444.7 MB, free: 13.78 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.0003618/0.0976, allocations: 355.3 kB / 445 MB, free: 13.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.09766, allocations: 8.031 kB / 445 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.443e-05/0.0977, allocations: 34.75 kB / 445.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.09773, allocations: 4.844 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.0979, allocations: 197.5 kB / 445.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.09794, allocations: 8.312 kB / 445.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.09795, allocations: 384 / 445.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.09817, allocations: 85.69 kB / 445.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.09819, allocations: 3.938 kB / 445.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.09821, allocations: 11.92 kB / 445.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.09822, allocations: 0 / 445.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.764e-05/0.09828, allocations: 8 kB / 445.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002971/0.09859, allocations: 261.8 kB / 445.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.906e-05/0.09867, allocations: 49.09 kB / 445.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.201e-05/0.09871, allocations: 13.78 kB / 445.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.09874, allocations: 0 / 445.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.596e-05/0.09876, allocations: 34.56 kB / 445.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.09877, allocations: 4 kB / 445.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002062/0.09898, allocations: 61.52 kB / 445.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.09903, allocations: 85.11 kB / 445.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.09913, allocations: 129.8 kB / 446 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.116e-06/0.09915, allocations: 29.64 kB / 446 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.09919, allocations: 88.39 kB / 446.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.226e-05/0.09921, allocations: 0 / 446.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-06/0.09922, allocations: 0 / 446.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.293e-05/0.09928, allocations: 318.8 kB / 446.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.77e-05/0.09931, allocations: 7.984 kB / 446.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.515e-05/0.09935, allocations: 13.72 kB / 446.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.844e-05/0.0994, allocations: 33.7 kB / 446.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.09941, allocations: 3.938 kB / 446.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001128/0.09953, allocations: 49.64 kB / 446.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.09955, allocations: 7.938 kB / 446.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.09956, allocations: 7.984 kB / 446.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.09958, allocations: 0 / 446.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.288e-05/0.0996, allocations: 4.062 kB / 446.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.09961, allocations: 0 / 446.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.846e-05/0.09964, allocations: 11.84 kB / 446.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.09966, allocations: 0 / 446.6 MB, free: 11.61 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.273e-05/0.09972, allocations: 114.7 kB / 446.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-05/0.09978, allocations: 45.62 kB / 446.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.09981, allocations: 11.47 kB / 446.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.09982, allocations: 4 kB / 446.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.09983, allocations: 8.031 kB / 446.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.09984, allocations: 0 / 446.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.09996, allocations: 169.6 kB / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.09997, allocations: 0 / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-06/0.09998, allocations: 0 / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.09999, allocations: 4 kB / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1, allocations: 0 / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1, allocations: 0 / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1, allocations: 0 / 446.9 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.1001, allocations: 164.2 kB / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.1002, allocations: 89 kB / 447.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.1002, allocations: 4 kB / 447.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.31e-05/0.1003, allocations: 0 / 447.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/0.1003, allocations: 3.984 kB / 447.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.1003, allocations: 4 kB / 447.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.527e-05/0.1004, allocations: 99.27 kB / 447.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1004, allocations: 4.031 kB / 447.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002184/0.1006, allocations: 4 kB / 447.3 MB, free: 10.8 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 (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.00028/0.1009, allocations: 0.6781 MB / 448 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.726e-05/0.101, allocations: 24.02 kB / 448 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.101, allocations: 0 / 448 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.52e-05/0.101, allocations: 8 kB / 448 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.1014, allocations: 19.95 kB / 448 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008552/0.1022, allocations: 1.267 MB / 449.3 MB, free: 8.676 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.1024, allocations: 0.6887 MB / 450 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.236e-05/0.1024, allocations: 4.031 kB / 450 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.1024, allocations: 11.44 kB / 450 MB, free: 7.945 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1024, allocations: 4 kB / 450 MB, free: 7.941 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.1141, allocations: 1.152 MB / 451.1 MB, free: 6.785 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/0.1142, allocations: 233.2 kB / 451.4 MB, free: 6.527 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.745, allocations: 3.938 kB / 451.4 MB, free: 6.523 MB / 298.7 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