Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.001752/0.001752, allocations: 168.9 kB / 16.14 MB, free: 5.656 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.489/1.489, allocations: 205.4 MB / 222.3 MB, free: 9.012 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.0008181/0.0008178, allocations: 82.78 kB / 270.6 MB, free: 8.242 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.07712/0.07712, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.0003752, allocations: 8 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09679, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001512/0.09835, allocations: 1.215 MB / 444.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003158/0.0987, allocations: 131.6 kB / 444.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.09878, allocations: 3.938 kB / 444.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.09882, allocations: 7.984 kB / 444.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.09893, allocations: 7.938 kB / 444.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.09916, allocations: 31.97 kB / 444.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.016e-05/0.09924, allocations: 31.86 kB / 444.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.9e-05/0.09933, allocations: 15.98 kB / 444.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.633e-05/0.09937, allocations: 15.88 kB / 444.6 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.476e-05/0.09941, allocations: 11.92 kB / 444.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.09943, allocations: 0 / 444.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.05e-05/0.09944, allocations: 0 / 444.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.481e-05/0.09949, allocations: 19.92 kB / 444.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.09953, allocations: 41.58 kB / 444.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.113e-05/0.09961, allocations: 47.75 kB / 444.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09962, allocations: 0 / 444.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.09963, allocations: 3.938 kB / 444.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.09963, allocations: 0 / 444.7 MB, free: 13.72 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003076/0.09995, allocations: 359.5 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.09999, allocations: 16.02 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.715e-05/0.1, allocations: 34.75 kB / 445.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.138e-05/0.1001, allocations: 12.84 kB / 445.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.1002, allocations: 180.3 kB / 445.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.1002, allocations: 8.312 kB / 445.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.1002, allocations: 4.375 kB / 445.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002329/0.1005, allocations: 117.6 kB / 445.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1005, allocations: 3.938 kB / 445.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.1005, allocations: 0 / 445.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1005, allocations: 0 / 445.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.277e-05/0.1006, allocations: 23.98 kB / 445.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00024/0.1008, allocations: 273.6 kB / 445.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.101, allocations: 134.2 kB / 445.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.771e-05/0.1011, allocations: 33.7 kB / 445.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.1011, allocations: 4 kB / 445.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.266e-05/0.1011, allocations: 38.56 kB / 445.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.1011, allocations: 0 / 445.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000222/0.1014, allocations: 81.59 kB / 446 MB, free: 12.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1014, allocations: 81.11 kB / 446.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.1015, allocations: 142.1 kB / 446.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.657e-06/0.1015, allocations: 25.7 kB / 446.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.079e-05/0.1015, allocations: 92.08 kB / 446.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.293e-06/0.1016, allocations: 0 / 446.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.1016, allocations: 0 / 446.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.868e-05/0.1016, allocations: 318.8 kB / 446.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.477e-05/0.1017, allocations: 8 kB / 446.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.792e-05/0.1017, allocations: 39.42 kB / 446.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.828e-05/0.1018, allocations: 55.36 kB / 446.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1018, allocations: 3.938 kB / 446.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001073/0.1019, allocations: 69.55 kB / 446.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.1019, allocations: 5.094 kB / 446.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1019, allocations: 8 kB / 446.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.102, allocations: 0 / 446.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.464e-05/0.102, allocations: 12.06 kB / 446.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.102, allocations: 4 kB / 446.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.439e-05/0.1021, allocations: 11.89 kB / 446.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.1021, allocations: 4 kB / 446.9 MB, free: 11.25 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.105e-05/0.1022, allocations: 118.7 kB / 447 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.1023, allocations: 49.62 kB / 447 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.1023, allocations: 12.25 kB / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1023, allocations: 336 / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1023, allocations: 0 / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1023, allocations: 4 kB / 447.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.1025, allocations: 177.5 kB / 447.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1025, allocations: 0 / 447.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.062e-05/0.1025, allocations: 15.97 kB / 447.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1025, allocations: 0 / 447.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1026, allocations: 0 / 447.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1026, allocations: 4 kB / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1026, allocations: 0 / 447.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.1027, allocations: 172.3 kB / 447.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.337e-05/0.1028, allocations: 93 kB / 447.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.1028, allocations: 4 kB / 447.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.415e-05/0.1029, allocations: 0 / 447.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.537e-05/0.1029, allocations: 4 kB / 447.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.1029, allocations: 3.938 kB / 447.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.76e-05/0.103, allocations: 111.2 kB / 447.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.103, allocations: 0 / 447.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.1032, allocations: 4 kB / 447.6 MB, free: 10.39 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: 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 (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.0003473/0.1035, allocations: 0.7131 MB / 448.3 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.1037, allocations: 27.98 kB / 448.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1037, allocations: 0 / 448.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.1037, allocations: 15.92 kB / 448.4 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.1041, allocations: 24.03 kB / 448.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009833/0.1051, allocations: 1.341 MB / 449.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.1053, allocations: 0.6887 MB / 450.4 MB, free: 7.418 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.522e-05/0.1053, allocations: 4 kB / 450.4 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.1053, allocations: 23.36 kB / 450.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1053, allocations: 3.938 kB / 450.5 MB, free: 7.387 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01027/0.1156, allocations: 1.254 MB / 451.7 MB, free: 6.129 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.1158, allocations: 221.8 kB / 451.9 MB, free: 5.875 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/1.754, allocations: 0 / 451.9 MB, free: 5.875 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat