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.002293/0.002293, allocations: 174.2 kB / 15.81 MB, free: 6.285 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.603/1.603, allocations: 205.4 MB / 222 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.0008737/0.0008738, allocations: 98.28 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.07734/0.07734, allocations: 12.6 MB / 331.2 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004161/0.0004161, allocations: 14.38 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09848, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001431/0.09996, allocations: 1.208 MB / 443.7 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002917/0.1003, allocations: 139.6 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.91e-05/0.1004, allocations: 0 / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.949e-05/0.1004, allocations: 4 kB / 443.8 MB, free: 9.484 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.1005, allocations: 7.938 kB / 443.9 MB, free: 9.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1007, allocations: 35.91 kB / 443.9 MB, free: 9.441 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.14e-05/0.1008, allocations: 27.92 kB / 443.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.978e-05/0.1009, allocations: 19.91 kB / 443.9 MB, free: 9.395 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.847e-05/0.101, allocations: 7.938 kB / 443.9 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.918e-05/0.101, allocations: 15.92 kB / 444 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.101, allocations: 0 / 444 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.101, allocations: 4 kB / 444 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.226e-05/0.1011, allocations: 11.94 kB / 444 MB, free: 9.355 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.1011, allocations: 33.64 kB / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.886e-05/0.1012, allocations: 35.92 kB / 444 MB, free: 9.281 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1012, allocations: 4 kB / 444 MB, free: 9.277 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1012, allocations: 0 / 444 MB, free: 9.277 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.1012, allocations: 0 / 444 MB, free: 9.277 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.0003512/0.1016, allocations: 355.9 kB / 444.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1016, allocations: 12.03 kB / 444.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.702e-05/0.1016, allocations: 34.56 kB / 444.4 MB, free: 8.828 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.1017, allocations: 11.91 kB / 444.5 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.1018, allocations: 178.9 kB / 444.6 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.1018, allocations: 7.953 kB / 444.6 MB, free: 8.594 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.1018, allocations: 4 kB / 444.6 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.1021, allocations: 128.9 kB / 444.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1021, allocations: 0 / 444.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.1021, allocations: 0 / 444.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1021, allocations: 0 / 444.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.264e-05/0.1022, allocations: 27.97 kB / 444.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002515/0.1025, allocations: 265.7 kB / 445.1 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1027, allocations: 134.2 kB / 445.2 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.907e-05/0.1027, allocations: 33.7 kB / 445.2 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.1027, allocations: 3.938 kB / 445.2 MB, free: 7.895 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.1028, allocations: 46.55 kB / 445.3 MB, free: 7.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.1028, allocations: 0 / 445.3 MB, free: 7.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002405/0.103, allocations: 85.5 kB / 445.3 MB, free: 7.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.1031, allocations: 77.11 kB / 445.4 MB, free: 7.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.701e-05/0.1032, allocations: 138.2 kB / 445.6 MB, free: 7.508 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.584e-06/0.1032, allocations: 25.7 kB / 445.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.1032, allocations: 84.14 kB / 445.7 MB, free: 7.391 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.458e-06/0.1032, allocations: 7.922 kB / 445.7 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-06/0.1032, allocations: 4 kB / 445.7 MB, free: 7.379 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.1033, allocations: 318.8 kB / 446 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.717e-05/0.1033, allocations: 8 kB / 446 MB, free: 7.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.946e-05/0.1034, allocations: 39.42 kB / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.051e-05/0.1034, allocations: 15.92 kB / 446 MB, free: 6.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1034, allocations: 0 / 446 MB, free: 6.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001081/0.1036, allocations: 73.53 kB / 446.1 MB, free: 6.906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1036, allocations: 4 kB / 446.1 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1036, allocations: 0 / 446.1 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1036, allocations: 4 kB / 446.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.887e-05/0.1037, allocations: 15.98 kB / 446.1 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1037, allocations: 0 / 446.1 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.2e-05/0.1037, allocations: 8 kB / 446.2 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-06/0.1037, allocations: 4.125 kB / 446.2 MB, free: 6.871 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 6.405e-05/0.1038, allocations: 133.5 kB / 446.3 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.262e-05/0.1039, allocations: 45.61 kB / 446.3 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.736e-05/0.1039, allocations: 12.23 kB / 446.3 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-06/0.1039, allocations: 4 kB / 446.3 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1039, allocations: 0 / 446.3 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1039, allocations: 0 / 446.3 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.104, allocations: 165.6 kB / 446.5 MB, free: 6.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.104, allocations: 0 / 446.5 MB, free: 6.449 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.713e-05/0.1041, allocations: 12 kB / 446.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1041, allocations: 7.938 kB / 446.5 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1041, allocations: 4 kB / 446.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1041, allocations: 0 / 446.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1041, allocations: 3.984 kB / 446.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.1043, allocations: 172.2 kB / 446.7 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.101e-05/0.1043, allocations: 89.05 kB / 446.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.1043, allocations: 4 kB / 446.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.542e-05/0.1044, allocations: 7.984 kB / 446.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.1044, allocations: 0 / 446.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1044, allocations: 7.938 kB / 446.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.245e-05/0.1045, allocations: 99.27 kB / 446.9 MB, free: 6.012 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1045, allocations: 0 / 446.9 MB, free: 6.012 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001922/0.1047, allocations: 4 kB / 446.9 MB, free: 6.008 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.0003049/0.105, allocations: 0.7092 MB / 447.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.1051, allocations: 35.92 kB / 447.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1051, allocations: 0 / 447.7 MB, free: 5.234 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.1051, allocations: 8 kB / 447.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.1055, allocations: 28.19 kB / 447.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005758/0.1061, allocations: 478.3 kB / 448.2 MB, free: 4.668 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.1062, allocations: 0.6929 MB / 448.9 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.144e-05/0.1062, allocations: 3.984 kB / 448.9 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.1063, allocations: 11.44 kB / 448.9 MB, free: 3.934 MB / 282.7 MB Notification: Performance of SimCode: time 2e-07/0.1063, allocations: 0 / 448.9 MB, free: 3.934 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01145/0.1177, allocations: 1.256 MB / 450.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/0.118, allocations: 210.1 kB / 450.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.523/1.641, allocations: 4 kB / 450.3 MB, free: 2.445 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