Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep",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.0009441/0.0009441, allocations: 177.1 kB / 15.82 MB, free: 6.02 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.66/1.66, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008567/0.0008568, allocations: 102.2 kB / 270.3 MB, free: 13.34 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.0688/0.0688, allocations: 12.6 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00042/0.0004201, allocations: 12.47 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09829, allocations: 50.37 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001527/0.09986, allocations: 1.145 MB / 443.6 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002744/0.1002, allocations: 100.1 kB / 443.7 MB, free: 9.551 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.086e-05/0.1003, allocations: 4 kB / 443.7 MB, free: 9.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.1003, allocations: 3.938 kB / 443.7 MB, free: 9.543 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.676e-05/0.1003, allocations: 3.938 kB / 443.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002436/0.1006, allocations: 15.98 kB / 443.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.78e-05/0.1007, allocations: 23.92 kB / 443.8 MB, free: 9.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.956e-05/0.1007, allocations: 7.984 kB / 443.8 MB, free: 9.492 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.892e-05/0.1008, allocations: 11.94 kB / 443.8 MB, free: 9.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.349e-05/0.1008, allocations: 11.94 kB / 443.8 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.1009, allocations: 0 / 443.8 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.718e-06/0.1009, allocations: 0 / 443.8 MB, free: 9.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.397e-05/0.1009, allocations: 15.91 kB / 443.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.589e-05/0.1009, allocations: 29.7 kB / 443.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.335e-05/0.101, allocations: 11.98 kB / 443.9 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.101, allocations: 0 / 443.9 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.101, allocations: 0 / 443.9 MB, free: 9.406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.101, allocations: 3.938 kB / 443.9 MB, free: 9.402 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003397/0.1014, allocations: 348.1 kB / 444.2 MB, free: 9.016 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1014, allocations: 8.031 kB / 444.2 MB, free: 9.008 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.182e-05/0.1014, allocations: 34.56 kB / 444.3 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.1015, allocations: 7.906 kB / 444.3 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.1016, allocations: 167.1 kB / 444.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1017, allocations: 3.953 kB / 444.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.1017, allocations: 8 kB / 444.4 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.102, allocations: 111.3 kB / 444.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.102, allocations: 0 / 444.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-06/0.102, allocations: 0 / 444.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.102, allocations: 0 / 444.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.932e-05/0.1021, allocations: 27.92 kB / 444.6 MB, free: 8.594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001049/0.1022, allocations: 161.6 kB / 444.7 MB, free: 8.387 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.1024, allocations: 62.56 kB / 444.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.634e-05/0.1024, allocations: 28.84 kB / 444.8 MB, free: 8.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1025, allocations: 4 kB / 444.8 MB, free: 8.281 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.1025, allocations: 34.56 kB / 444.9 MB, free: 8.238 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1025, allocations: 0 / 444.9 MB, free: 8.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002146/0.1027, allocations: 81.52 kB / 444.9 MB, free: 8.152 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.1028, allocations: 55.41 kB / 445 MB, free: 8.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.064e-05/0.1028, allocations: 117.8 kB / 445.1 MB, free: 7.961 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-06/0.1029, allocations: 25.7 kB / 445.1 MB, free: 7.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.1029, allocations: 80.14 kB / 445.2 MB, free: 7.848 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.134e-06/0.1029, allocations: 8 kB / 445.2 MB, free: 7.84 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.1029, allocations: 0 / 445.2 MB, free: 7.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.728e-05/0.103, allocations: 314.8 kB / 445.5 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-06/0.103, allocations: 4 kB / 445.5 MB, free: 7.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.974e-05/0.103, allocations: 31.44 kB / 445.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.856e-05/0.103, allocations: 7.938 kB / 445.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.103, allocations: 0 / 445.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.089e-05/0.1031, allocations: 61.58 kB / 445.6 MB, free: 7.402 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1031, allocations: 4 kB / 445.6 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1031, allocations: 0 / 445.6 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1031, allocations: 8.125 kB / 445.6 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.949e-05/0.1032, allocations: 7.984 kB / 445.7 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1032, allocations: 4 kB / 445.7 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.1032, allocations: 3.938 kB / 445.7 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.1032, allocations: 0 / 445.7 MB, free: 7.375 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 5.626e-05/0.1033, allocations: 117.6 kB / 445.8 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-05/0.1034, allocations: 65.55 kB / 445.8 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.1034, allocations: 15.89 kB / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1035, allocations: 0 / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1035, allocations: 0 / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1035, allocations: 0 / 445.9 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.425e-05/0.1035, allocations: 153.7 kB / 446 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1035, allocations: 0 / 446 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.948e-05/0.1036, allocations: 11.98 kB / 446 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1036, allocations: 0 / 446 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.1036, allocations: 7.953 kB / 446 MB, free: 6.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1036, allocations: 4 kB / 446 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1036, allocations: 0 / 446 MB, free: 6.938 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001171/0.1038, allocations: 93.05 kB / 446.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.887e-05/0.1038, allocations: 81.02 kB / 446.2 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.1038, allocations: 0 / 446.2 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.624e-05/0.1038, allocations: 7.953 kB / 446.2 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.668e-06/0.1039, allocations: 384 / 446.2 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.1039, allocations: 8.188 kB / 446.2 MB, free: 6.715 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.761e-05/0.1039, allocations: 91.27 kB / 446.3 MB, free: 6.625 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1039, allocations: 0 / 446.3 MB, free: 6.625 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001895/0.1041, allocations: 4 kB / 446.3 MB, free: 6.621 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.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.0002766/0.1044, allocations: 0.6202 MB / 446.9 MB, free: 5.973 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000103/0.1045, allocations: 23.98 kB / 447 MB, free: 5.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1045, allocations: 4 kB / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.91e-07/0.1045, allocations: 0 / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.1047, allocations: 35.62 kB / 447 MB, free: 5.914 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.1052, allocations: 385.3 kB / 447.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.1053, allocations: 0.6809 MB / 448 MB, free: 4.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.305e-05/0.1054, allocations: 4 kB / 448.1 MB, free: 4.766 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.1054, allocations: 15.42 kB / 448.1 MB, free: 4.75 MB / 282.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1054, allocations: 0 / 448.1 MB, free: 4.75 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.1168, allocations: 1.042 MB / 449.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.117, allocations: 224.9 kB / 449.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.513/1.63, allocations: 4 kB / 449.3 MB, free: 3.469 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat