Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",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.001536/0.001536, allocations: 177.7 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001132/0.001131, allocations: 95.81 kB / 261.8 MB, free: 13.45 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.1078/0.1078, allocations: 12.59 MB / 322.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.119e-05, allocations: 4 kB / 379 MB, free: 75.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 50.38 MB / 429.4 MB, free: 24.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.582, allocations: 81.62 MB / 0.4991 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.5824, allocations: 84.17 kB / 0.4991 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03548/0.6179, allocations: 8.588 MB / 0.5075 GB, free: 9.844 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.6179, allocations: 3.938 kB / 0.5075 GB, free: 9.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.131e-05/0.618, allocations: 3.875 kB / 0.5075 GB, free: 9.84 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008089/0.6188, allocations: 0.5281 MB / 0.508 GB, free: 9.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6188, allocations: 11.66 kB / 0.5081 GB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.614e-05/0.6189, allocations: 27.28 kB / 0.5081 GB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005988/0.6196, allocations: 311.5 kB / 0.5084 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.6196, allocations: 7.734 kB / 0.5084 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.365e-05/0.6196, allocations: 7.812 kB / 0.5084 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002358/0.6199, allocations: 84.94 kB / 0.5085 GB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005861/0.6205, allocations: 287.6 kB / 0.5088 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.6205, allocations: 0 / 0.5088 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.6206, allocations: 0.9375 kB / 0.5088 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.6206, allocations: 3.969 kB / 0.5088 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.6213, allocations: 405.1 kB / 0.5091 GB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.6217, allocations: 180 kB / 0.5093 GB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.6218, allocations: 80.38 kB / 0.5094 GB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.6219, allocations: 7.484 kB / 0.5094 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.6221, allocations: 81.23 kB / 0.5095 GB, free: 8.406 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.514e-06/0.6221, allocations: 0 / 0.5095 GB, free: 8.406 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004918/0.6226, allocations: 183.4 kB / 0.5097 GB, free: 8.336 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.6227, allocations: 168.2 kB / 0.5098 GB, free: 8.145 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.6231, allocations: 299.1 kB / 0.5101 GB, free: 8.023 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.6231, allocations: 29.58 kB / 0.5101 GB, free: 7.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.975e-05/0.6232, allocations: 135.8 kB / 0.5103 GB, free: 7.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.6233, allocations: 22.27 kB / 0.5103 GB, free: 7.887 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.6233, allocations: 0 / 0.5103 GB, free: 7.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.338e-05/0.6234, allocations: 340.7 kB / 0.5106 GB, free: 7.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-05/0.6235, allocations: 37.36 kB / 0.5106 GB, free: 7.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.6237, allocations: 185 kB / 0.5108 GB, free: 7.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.6238, allocations: 63.38 kB / 0.5109 GB, free: 7.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.6239, allocations: 0 / 0.5109 GB, free: 7.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004143/0.6243, allocations: 202 kB / 0.5111 GB, free: 7.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.6243, allocations: 11.62 kB / 0.5111 GB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.6243, allocations: 7.906 kB / 0.5111 GB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.6244, allocations: 7.812 kB / 0.5111 GB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.6247, allocations: 38.77 kB / 0.5111 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.6247, allocations: 11.67 kB / 0.5111 GB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.6249, allocations: 11.59 kB / 0.5112 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.6249, allocations: 7.688 kB / 0.5112 GB, free: 7.246 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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 0.0001372/0.6251, allocations: 133.7 kB / 0.5113 GB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003982/0.6255, allocations: 186.3 kB / 0.5115 GB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.6256, allocations: 27.33 kB / 0.5115 GB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003225/0.6259, allocations: 129.4 kB / 0.5116 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6259, allocations: 3.969 kB / 0.5116 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.6259, allocations: 0 / 0.5116 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.6259, allocations: 0 / 0.5116 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.6262, allocations: 243.6 kB / 0.5118 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.6262, allocations: 3.969 kB / 0.5119 GB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.6265, allocations: 34.42 kB / 0.5119 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.6265, allocations: 7.938 kB / 0.5119 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.6265, allocations: 7.781 kB / 0.5119 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6265, allocations: 0 / 0.5119 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.6265, allocations: 3.844 kB / 0.5119 GB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.627, allocations: 252.8 kB / 0.5121 GB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.6272, allocations: 134.4 kB / 0.5123 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.066e-05/0.6272, allocations: 7.125 kB / 0.5123 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.6274, allocations: 3.844 kB / 0.5123 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.6275, allocations: 7.953 kB / 0.5123 GB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.6275, allocations: 15.33 kB / 0.5123 GB, free: 6.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003038/0.6278, allocations: 232.4 kB / 0.5125 GB, free: 6.363 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6278, allocations: 0 / 0.5125 GB, free: 6.363 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005354/0.6284, allocations: 60.86 kB / 0.5126 GB, free: 6.348 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001826/0.6302, allocations: 1.274 MB / 0.5138 GB, free: 5.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004396/0.6307, allocations: 146.3 kB / 0.514 GB, free: 5.312 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/0.6307, allocations: 3.844 kB / 0.514 GB, free: 5.312 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.001e-05/0.6308, allocations: 25.69 kB / 0.514 GB, free: 5.309 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006843/0.6315, allocations: 111.9 kB / 0.5141 GB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.6328, allocations: 425.7 kB / 0.5145 GB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.6331, allocations: 0.7726 MB / 0.5153 GB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001735/0.6333, allocations: 37.58 kB / 0.5153 GB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.6335, allocations: 80.53 kB / 0.5154 GB, free: 4.266 MB / 330.7 MB Notification: Performance of SimCode: time 2.554e-06/0.6335, allocations: 0 / 0.5154 GB, free: 4.266 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05592/0.6894, allocations: 5.328 MB / 0.5206 GB, free: 1.699 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002785/0.6898, allocations: 199 kB / 0.5208 GB, free: 1.504 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.752/3.442, allocations: 0 / 0.5208 GB, free: 1.504 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat