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.001587/0.001591, allocations: 185.1 kB / 15.81 MB, free: 6.027 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.297/2.297, 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.001176/0.001176, allocations: 90.8 kB / 270.3 MB, free: 13.35 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.1015/0.1015, allocations: 12.59 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005616/0.0005617, allocations: 13.78 kB / 392.1 MB, free: 54.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1021, allocations: 50.38 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001642/0.1038, allocations: 1.141 MB / 443.6 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002585/0.1041, allocations: 100 kB / 443.7 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.943e-05/0.1041, allocations: 0 / 443.7 MB, free: 9.562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.1042, allocations: 4 kB / 443.7 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.538e-05/0.1042, allocations: 3.984 kB / 443.7 MB, free: 9.555 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.1045, allocations: 27.84 kB / 443.8 MB, free: 9.527 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.728e-05/0.1046, allocations: 12 kB / 443.8 MB, free: 9.516 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.739e-05/0.1046, allocations: 8 kB / 443.8 MB, free: 9.508 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.735e-05/0.1047, allocations: 11.91 kB / 443.8 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.315e-05/0.1047, allocations: 7.938 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.1048, allocations: 0 / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.1048, allocations: 4 kB / 443.8 MB, free: 9.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.1048, allocations: 0 / 443.8 MB, free: 9.484 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.1048, allocations: 33.7 kB / 443.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.225e-05/0.1049, allocations: 15.97 kB / 443.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1049, allocations: 0 / 443.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1049, allocations: 0 / 443.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1049, allocations: 0 / 443.8 MB, free: 9.43 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.0003479/0.1053, allocations: 340.1 kB / 444.2 MB, free: 9.051 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1053, allocations: 11.97 kB / 444.2 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.1054, allocations: 34.56 kB / 444.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.584e-05/0.1054, allocations: 11.91 kB / 444.2 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.1056, allocations: 171 kB / 444.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1056, allocations: 3.953 kB / 444.4 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1056, allocations: 8 kB / 444.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.106, allocations: 111.3 kB / 444.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.106, allocations: 0 / 444.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.106, allocations: 3.984 kB / 444.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.106, allocations: 0 / 444.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.1062, allocations: 23.98 kB / 444.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001162/0.1063, allocations: 157.6 kB / 444.7 MB, free: 8.414 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.1066, allocations: 66.48 kB / 444.8 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.1066, allocations: 3.953 kB / 444.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.1066, allocations: 30.56 kB / 444.8 MB, free: 8.297 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.613e-06/0.1066, allocations: 0 / 444.8 MB, free: 8.297 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002884/0.1069, allocations: 81.75 kB / 444.9 MB, free: 8.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.107, allocations: 55.34 kB / 444.9 MB, free: 8.145 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.981e-05/0.1071, allocations: 109.8 kB / 445 MB, free: 8.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.1071, allocations: 25.7 kB / 445.1 MB, free: 7.996 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.584e-05/0.1071, allocations: 80.14 kB / 445.1 MB, free: 7.914 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-06/0.1071, allocations: 4 kB / 445.1 MB, free: 7.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.1071, allocations: 4 kB / 445.2 MB, free: 7.906 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.1072, allocations: 318.8 kB / 445.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.1072, allocations: 4 kB / 445.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.707e-05/0.1073, allocations: 27.62 kB / 445.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.399e-05/0.1073, allocations: 4 kB / 445.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1073, allocations: 0 / 445.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.734e-05/0.1074, allocations: 65.59 kB / 445.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1074, allocations: 7.953 kB / 445.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/0.1075, allocations: 0 / 445.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1075, allocations: 7.984 kB / 445.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.464e-05/0.1075, allocations: 7.984 kB / 445.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1076, allocations: 4.25 kB / 445.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.708e-05/0.1076, allocations: 4 kB / 445.6 MB, free: 7.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.593e-06/0.1076, allocations: 4 kB / 445.6 MB, free: 7.434 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 6.84e-05/0.1077, allocations: 121.7 kB / 445.7 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.1079, allocations: 65.53 kB / 445.8 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.1079, allocations: 15.84 kB / 445.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.1079, allocations: 0 / 445.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1079, allocations: 0 / 445.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1079, allocations: 0 / 445.8 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.249e-05/0.108, allocations: 153.7 kB / 445.9 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.108, allocations: 0 / 445.9 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.906e-05/0.1081, allocations: 15.98 kB / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1081, allocations: 0 / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1081, allocations: 4 kB / 446 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1082, allocations: 3.953 kB / 446 MB, free: 6.992 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1082, allocations: 4 kB / 446 MB, free: 6.988 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001716/0.1083, allocations: 89.05 kB / 446.1 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.694e-05/0.1084, allocations: 85.02 kB / 446.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.1084, allocations: 0 / 446.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.026e-05/0.1085, allocations: 4 kB / 446.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-06/0.1085, allocations: 3.953 kB / 446.2 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.1085, allocations: 0 / 446.2 MB, free: 6.773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.35e-05/0.1085, allocations: 87.27 kB / 446.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1085, allocations: 0 / 446.2 MB, free: 6.688 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.1088, allocations: 4 kB / 446.2 MB, free: 6.684 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.0003521/0.1091, allocations: 0.6125 MB / 446.9 MB, free: 6.043 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.1093, allocations: 27.92 kB / 446.9 MB, free: 6.016 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1093, allocations: 4 kB / 446.9 MB, free: 6.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.012e-06/0.1093, allocations: 4.25 kB / 446.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/0.1096, allocations: 35.64 kB / 446.9 MB, free: 5.977 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006562/0.1102, allocations: 0.8257 MB / 447.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.1104, allocations: 0.6848 MB / 448.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.733e-05/0.1104, allocations: 0 / 448.4 MB, free: 4.375 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.1105, allocations: 19.38 kB / 448.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1105, allocations: 4 kB / 448.5 MB, free: 4.352 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1291, allocations: 1.027 MB / 449.5 MB, free: 3.34 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003598/0.1296, allocations: 218.6 kB / 449.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/2.544, allocations: 4 kB / 449.7 MB, free: 3.086 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