Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1",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.002835/0.00284, allocations: 186 kB / 15.81 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.256/2.256, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001559/0.001558, allocations: 98.84 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1001/0.1001, allocations: 12.6 MB / 331.1 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005529/0.0005529, allocations: 16.84 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09596, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1): time 0.001742/0.09775, allocations: 1.197 MB / 443.7 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003647/0.09814, allocations: 136.5 kB / 443.8 MB, free: 9.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.635e-05/0.09824, allocations: 3.938 kB / 443.8 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.489e-05/0.09828, allocations: 4 kB / 443.8 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.09842, allocations: 3.984 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.09869, allocations: 41.66 kB / 443.9 MB, free: 9.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.012e-05/0.09878, allocations: 19.97 kB / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.038e-05/0.09888, allocations: 12.55 kB / 443.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.827e-05/0.09892, allocations: 7.938 kB / 443.9 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.923e-05/0.09896, allocations: 11.94 kB / 443.9 MB, free: 9.398 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.09899, allocations: 0 / 443.9 MB, free: 9.398 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.496e-05/0.09901, allocations: 0 / 443.9 MB, free: 9.398 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.152e-05/0.09905, allocations: 19.86 kB / 443.9 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.57e-05/0.09909, allocations: 37.64 kB / 444 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.156e-05/0.09917, allocations: 23.94 kB / 444 MB, free: 9.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.09918, allocations: 3.938 kB / 444 MB, free: 9.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09919, allocations: 0 / 444 MB, free: 9.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.0992, allocations: 0 / 444 MB, free: 9.309 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003789/0.09959, allocations: 363.4 kB / 444.4 MB, free: 8.906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.09964, allocations: 8.031 kB / 444.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.43e-05/0.09968, allocations: 34.56 kB / 444.4 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/0.09972, allocations: 7.906 kB / 444.4 MB, free: 8.848 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.09989, allocations: 186.9 kB / 444.6 MB, free: 8.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.09993, allocations: 7.891 kB / 444.6 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.09995, allocations: 4 kB / 444.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.1002, allocations: 113 kB / 444.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1003, allocations: 0 / 444.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.1003, allocations: 4 kB / 444.7 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.1003, allocations: 3.984 kB / 444.7 MB, free: 8.477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.363e-05/0.1004, allocations: 12 kB / 444.7 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.1007, allocations: 269.6 kB / 445 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.1008, allocations: 134.3 kB / 445.1 MB, free: 7.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.1009, allocations: 3.938 kB / 445.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.1009, allocations: 38.62 kB / 445.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.844e-06/0.1009, allocations: 0 / 445.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002746/0.1012, allocations: 69.7 kB / 445.2 MB, free: 7.855 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.1013, allocations: 85.05 kB / 445.3 MB, free: 7.754 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.1014, allocations: 141.6 kB / 445.5 MB, free: 7.605 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.1014, allocations: 25.7 kB / 445.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.5e-05/0.1014, allocations: 84.27 kB / 445.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.131e-05/0.1015, allocations: 11.98 kB / 445.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.1015, allocations: 0 / 445.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.1015, allocations: 318.8 kB / 445.9 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.4e-05/0.1016, allocations: 4 kB / 445.9 MB, free: 7.152 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-05/0.1017, allocations: 35.42 kB / 445.9 MB, free: 7.105 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.211e-05/0.1017, allocations: 15.89 kB / 445.9 MB, free: 7.09 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1017, allocations: 4 kB / 445.9 MB, free: 7.086 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001473/0.1019, allocations: 57.62 kB / 446 MB, free: 7.023 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1019, allocations: 4 kB / 446 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1019, allocations: 0 / 446 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.102, allocations: 4.125 kB / 446 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.614e-05/0.102, allocations: 11.94 kB / 446 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.102, allocations: 7.984 kB / 446 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.701e-05/0.1021, allocations: 3.906 kB / 446 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.1021, allocations: 4 kB / 446 MB, free: 6.988 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (step.y,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 7.679e-05/0.1022, allocations: 125.5 kB / 446.2 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.1022, allocations: 45.97 kB / 446.2 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.1023, allocations: 11.94 kB / 446.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1023, allocations: 0 / 446.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1023, allocations: 4 kB / 446.2 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1024, allocations: 0 / 446.2 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.1025, allocations: 165.7 kB / 446.4 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1025, allocations: 7.953 kB / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.047e-05/0.1026, allocations: 0 / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1026, allocations: 0 / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1026, allocations: 0 / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.1026, allocations: 7.984 kB / 446.4 MB, free: 6.559 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1026, allocations: 4 kB / 446.4 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.1028, allocations: 181.9 kB / 446.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.1029, allocations: 89 kB / 446.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1029, allocations: 4 kB / 446.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-05/0.103, allocations: 4 kB / 446.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.622e-05/0.103, allocations: 7.922 kB / 446.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.103, allocations: 4 kB / 446.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.298e-05/0.1031, allocations: 103.3 kB / 446.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1031, allocations: 0 / 446.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003044/0.1034, allocations: 4 kB / 446.8 MB, free: 6.121 MB / 282.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: 4 (step.y,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003645/0.1038, allocations: 0.7797 MB / 447.6 MB, free: 5.309 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001523/0.104, allocations: 27.92 kB / 447.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.104, allocations: 0 / 447.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.063e-05/0.104, allocations: 4 kB / 447.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.1044, allocations: 27.77 kB / 447.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000869/0.1053, allocations: 0.8888 MB / 448.5 MB, free: 4.293 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.1054, allocations: 0.6965 MB / 449.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.185e-05/0.1055, allocations: 3.984 kB / 449.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.1055, allocations: 15.38 kB / 449.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.1056, allocations: 3.938 kB / 449.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.1279, allocations: 1.22 MB / 450.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002475/0.1283, allocations: 208 kB / 450.7 MB, free: 2.094 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.482/2.611, allocations: 0 / 450.7 MB, free: 2.094 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat does not exist to compare? outputFormat=mat