Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.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.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",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.001484/0.001484, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.067/2.067, 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.001149/0.001148, allocations: 94.84 kB / 270.3 MB, free: 13.38 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.0983/0.0983, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005783/0.0005784, allocations: 16.08 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09863, allocations: 50.37 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.2443, allocations: 79.36 MB / 0.5096 GB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.2446, allocations: 59.97 kB / 0.5097 GB, free: 11.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01162/0.2562, allocations: 2.331 MB / 0.5119 GB, free: 8.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2563, allocations: 192 / 0.5119 GB, free: 8.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.693e-05/0.2563, allocations: 4 kB / 0.5119 GB, free: 8.977 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009044/0.2572, allocations: 442.7 kB / 0.5124 GB, free: 8.496 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.2573, allocations: 8.031 kB / 0.5124 GB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.416e-05/0.2574, allocations: 38.56 kB / 0.5124 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.2574, allocations: 19.8 kB / 0.5124 GB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.2577, allocations: 206.9 kB / 0.5126 GB, free: 8.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.2578, allocations: 7.953 kB / 0.5126 GB, free: 8.172 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.2578, allocations: 11.98 kB / 0.5126 GB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.2584, allocations: 208.8 kB / 0.5128 GB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2585, allocations: 4 kB / 0.5128 GB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.2585, allocations: 7.922 kB / 0.5128 GB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2585, allocations: 0 / 0.5128 GB, free: 7.926 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.2588, allocations: 83.89 kB / 0.5129 GB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007249/0.2596, allocations: 341.5 kB / 0.5132 GB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.26, allocations: 137.1 kB / 0.5134 GB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.26, allocations: 4 kB / 0.5134 GB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.2603, allocations: 95.36 kB / 0.5135 GB, free: 7.195 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.426e-06/0.2603, allocations: 0 / 0.5135 GB, free: 7.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008549/0.2612, allocations: 241.3 kB / 0.5137 GB, free: 6.953 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.2613, allocations: 85.09 kB / 0.5138 GB, free: 6.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.2615, allocations: 141.3 kB / 0.5139 GB, free: 6.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.2616, allocations: 37.7 kB / 0.514 GB, free: 6.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.481e-05/0.2616, allocations: 100.1 kB / 0.5141 GB, free: 6.562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.2617, allocations: 31.78 kB / 0.5141 GB, free: 6.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.2617, allocations: 4 kB / 0.5141 GB, free: 6.527 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2619, allocations: 326.8 kB / 0.5144 GB, free: 6.199 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.2621, allocations: 31.98 kB / 0.5144 GB, free: 6.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2623, allocations: 117.3 kB / 0.5145 GB, free: 6.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.2625, allocations: 51.98 kB / 0.5146 GB, free: 5.969 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2625, allocations: 0 / 0.5146 GB, free: 5.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004873/0.263, allocations: 177.3 kB / 0.5148 GB, free: 5.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.263, allocations: 10.66 kB / 0.5148 GB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.263, allocations: 0 / 0.5148 GB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.2631, allocations: 4.109 kB / 0.5148 GB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.2633, allocations: 35.86 kB / 0.5148 GB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.2633, allocations: 4 kB / 0.5148 GB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2634, allocations: 7.906 kB / 0.5148 GB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.2635, allocations: 20.39 kB / 0.5148 GB, free: 5.711 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = true ) "Connector of Real output signals" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,sampler.y) * Number of discrete states: 0 () * Number of clocked states: 1 (stateSpace1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0002851/0.2638, allocations: 155.5 kB / 0.515 GB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.2639, allocations: 69.59 kB / 0.5151 GB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.421e-05/0.264, allocations: 20.7 kB / 0.5151 GB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.264, allocations: 3.938 kB / 0.5151 GB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.2641, allocations: 4 kB / 0.5151 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2641, allocations: 0 / 0.5151 GB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008785/0.265, allocations: 450.3 kB / 0.5155 GB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.265, allocations: 3.938 kB / 0.5155 GB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.2652, allocations: 15.98 kB / 0.5155 GB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.2652, allocations: 0 / 0.5155 GB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.2652, allocations: 7.984 kB / 0.5155 GB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.2652, allocations: 0 / 0.5155 GB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2652, allocations: 0 / 0.5155 GB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006304/0.2659, allocations: 305.9 kB / 0.5158 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.813e-05/0.266, allocations: 92.91 kB / 0.5159 GB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.266, allocations: 8 kB / 0.5159 GB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2662, allocations: 19.98 kB / 0.5159 GB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.2663, allocations: 11.94 kB / 0.516 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.2663, allocations: 4 kB / 0.516 GB, free: 4.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001411/0.2665, allocations: 115.1 kB / 0.5161 GB, free: 4.332 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2665, allocations: 0 / 0.5161 GB, free: 4.332 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003884/0.2669, allocations: 24 kB / 0.5161 GB, free: 4.309 MB / 362.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: 9 (sampler.sampleTrigger,stateSpace2.sampleTrigger,$whenCondition2,$whenCondition1,stateSpace2.firstTrigger,stateSpace2.y[1],stateSpace2.x[1],sampler.firstTrigger,sampler.y) * Number of discrete states: 1 (stateSpace2.x[1]) * Number of clocked states: 1 (stateSpace1.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001307/0.2682, allocations: 0.994 MB / 0.5171 GB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004669/0.2687, allocations: 130.1 kB / 0.5172 GB, free: 3.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2687, allocations: 0 / 0.5172 GB, free: 3.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.2689, allocations: 51.91 kB / 0.5172 GB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.2694, allocations: 36.44 kB / 0.5173 GB, free: 3.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.2721, allocations: 2.38 MB / 0.5196 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2665/0.5387, allocations: 0.7194 MB / 0.5203 GB, free: 85.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.781e-05/0.5388, allocations: 9.469 kB / 0.5203 GB, free: 85.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.539, allocations: 38.02 kB / 0.5203 GB, free: 85.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.539, allocations: 0 / 0.5203 GB, free: 85.62 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.5666, allocations: 2.434 MB / 0.5227 GB, free: 85.37 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002929/0.567, allocations: 202.6 kB / 0.5229 GB, free: 85.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/2.911, allocations: 0 / 0.5229 GB, free: 85.12 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)