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.001573/0.001573, allocations: 186.1 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.257/2.257, 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.00118/0.00118, allocations: 98.78 kB / 270.3 MB, free: 13.36 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.1089/0.1089, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005481/0.0005479, allocations: 23.66 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09856/0.09915, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001811/0.101, allocations: 1.208 MB / 443.7 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003769/0.1014, allocations: 136.4 kB / 443.8 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.1015, allocations: 4 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.848e-05/0.1016, allocations: 3.984 kB / 443.8 MB, free: 9.484 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.1017, allocations: 11.92 kB / 443.8 MB, free: 9.473 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.102, allocations: 27.97 kB / 443.9 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.12e-05/0.1021, allocations: 19.92 kB / 443.9 MB, free: 9.426 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.578e-05/0.1022, allocations: 11.98 kB / 443.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.819e-05/0.1022, allocations: 11.92 kB / 443.9 MB, free: 9.402 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.491e-05/0.1023, allocations: 15.94 kB / 443.9 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.1023, allocations: 4 kB / 443.9 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.1023, allocations: 3.938 kB / 443.9 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.1024, allocations: 7.984 kB / 443.9 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.1024, allocations: 37.64 kB / 444 MB, free: 9.328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 6.911e-05/0.1025, allocations: 31.94 kB / 444 MB, free: 9.297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1025, allocations: 0 / 444 MB, free: 9.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1025, allocations: 0 / 444 MB, free: 9.297 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.1025, allocations: 0 / 444 MB, free: 9.297 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.000405/0.1029, allocations: 363.8 kB / 444.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.103, allocations: 12.03 kB / 444.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.011e-05/0.103, allocations: 30.56 kB / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.1031, allocations: 7.906 kB / 444.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.1032, allocations: 186.9 kB / 444.6 MB, free: 8.613 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.1033, allocations: 7.953 kB / 444.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.1033, allocations: 4 kB / 444.6 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.1036, allocations: 120.9 kB / 444.7 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1036, allocations: 0 / 444.7 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.1036, allocations: 0 / 444.7 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1036, allocations: 0 / 444.7 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.1038, allocations: 27.92 kB / 444.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000277/0.1041, allocations: 261.8 kB / 445 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1043, allocations: 138.3 kB / 445.1 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.1043, allocations: 4 kB / 445.1 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.1043, allocations: 34.62 kB / 445.2 MB, free: 7.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 3.156e-06/0.1044, allocations: 3.984 kB / 445.2 MB, free: 7.906 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003078/0.1047, allocations: 85.45 kB / 445.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.1047, allocations: 85.23 kB / 445.4 MB, free: 7.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.1049, allocations: 138 kB / 445.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.1049, allocations: 29.7 kB / 445.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.1049, allocations: 80.14 kB / 445.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.1049, allocations: 7.938 kB / 445.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-06/0.105, allocations: 0 / 445.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.105, allocations: 318.8 kB / 445.9 MB, free: 7.121 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.938e-05/0.1051, allocations: 15.92 kB / 445.9 MB, free: 7.105 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.1052, allocations: 39.42 kB / 446 MB, free: 7.055 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.564e-05/0.1053, allocations: 12 kB / 446 MB, free: 7.043 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1053, allocations: 0 / 446 MB, free: 7.043 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001766/0.1055, allocations: 73.52 kB / 446.1 MB, free: 6.965 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1055, allocations: 8 kB / 446.1 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1055, allocations: 4 kB / 446.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1055, allocations: 0 / 446.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.43e-05/0.1056, allocations: 11.94 kB / 446.1 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1056, allocations: 4 kB / 446.1 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.179e-05/0.1057, allocations: 8.109 kB / 446.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.1057, allocations: 7.938 kB / 446.1 MB, free: 6.922 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.7e-05/0.1058, allocations: 125.6 kB / 446.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.188e-05/0.1059, allocations: 45.59 kB / 446.3 MB, free: 6.738 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.1059, allocations: 12.25 kB / 446.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.106, allocations: 0 / 446.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.106, allocations: 4 kB / 446.3 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.106, allocations: 0 / 446.3 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.1062, allocations: 169.6 kB / 446.4 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1062, allocations: 3.938 kB / 446.4 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.1063, allocations: 15.98 kB / 446.5 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-06/0.1063, allocations: 0 / 446.5 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.1063, allocations: 4 kB / 446.5 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1063, allocations: 0 / 446.5 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1063, allocations: 0 / 446.5 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.1065, allocations: 190 kB / 446.7 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.1066, allocations: 89.03 kB / 446.7 MB, free: 6.164 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.1066, allocations: 0 / 446.7 MB, free: 6.164 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.1067, allocations: 8 kB / 446.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.1067, allocations: 0 / 446.7 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.1068, allocations: 3.938 kB / 446.8 MB, free: 6.152 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.567e-05/0.1068, allocations: 103.2 kB / 446.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1068, allocations: 0 / 446.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003257/0.1072, allocations: 12 kB / 446.9 MB, free: 6.039 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.0003943/0.1076, allocations: 0.7798 MB / 447.6 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001752/0.1078, allocations: 32.34 kB / 447.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1078, allocations: 0 / 447.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.673e-05/0.1079, allocations: 11.98 kB / 447.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1082, allocations: 27.72 kB / 447.7 MB, free: 5.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009233/0.1091, allocations: 0.9161 MB / 448.6 MB, free: 4.172 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.1093, allocations: 0.6927 MB / 449.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.148e-05/0.1094, allocations: 7.984 kB / 449.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.1094, allocations: 19.42 kB / 449.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1094, allocations: 0 / 449.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.1311, allocations: 1.232 MB / 450.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/0.1314, allocations: 203.9 kB / 450.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/2.607, allocations: 0 / 450.8 MB, free: 1.965 MB / 282.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