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.001636/0.001635, allocations: 177.6 kB / 8.051 MB, free: 1.023 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.242/2.242, 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.001153/0.001153, allocations: 98.91 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.1103/0.1103, allocations: 12.59 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.898e-05, allocations: 4 kB / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.09873, allocations: 50.38 MB / 429.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5406, allocations: 78.6 MB / 0.4961 GB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.5408, allocations: 57 kB / 0.4962 GB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01017/0.551, allocations: 2.304 MB / 0.4984 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5511, allocations: 7.938 kB / 0.4984 GB, free: 11.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.5511, allocations: 7.75 kB / 0.4984 GB, free: 11.66 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006582/0.5517, allocations: 406 kB / 0.4988 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.5518, allocations: 11.25 kB / 0.4988 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.299e-05/0.5519, allocations: 21.64 kB / 0.4988 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.5521, allocations: 204.5 kB / 0.499 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.5521, allocations: 3.953 kB / 0.499 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.5522, allocations: 7.719 kB / 0.4991 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002224/0.5524, allocations: 67.62 kB / 0.4991 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003869/0.5528, allocations: 184.4 kB / 0.4993 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.5528, allocations: 0 / 0.4993 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.5529, allocations: 3.938 kB / 0.4993 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.5529, allocations: 3.875 kB / 0.4993 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000569/0.5535, allocations: 313 kB / 0.4996 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.5537, allocations: 120.5 kB / 0.4997 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.5539, allocations: 55.72 kB / 0.4998 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.5539, allocations: 1.922 kB / 0.4998 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.5541, allocations: 96.45 kB / 0.4999 GB, free: 10.63 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.375e-06/0.5541, allocations: 3.844 kB / 0.4999 GB, free: 10.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004211/0.5545, allocations: 172.4 kB / 0.5 GB, free: 10.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.5546, allocations: 84.8 kB / 0.5001 GB, free: 10.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.5547, allocations: 132.1 kB / 0.5002 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.5548, allocations: 29.58 kB / 0.5003 GB, free: 10.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.5548, allocations: 101.6 kB / 0.5004 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.5549, allocations: 25.66 kB / 0.5004 GB, free: 10.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.877e-06/0.5549, allocations: 0 / 0.5004 GB, free: 10.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.226e-05/0.555, allocations: 331 kB / 0.5007 GB, free: 9.949 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.446e-05/0.5551, allocations: 26.86 kB / 0.5007 GB, free: 9.945 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.74e-05/0.5552, allocations: 93.47 kB / 0.5008 GB, free: 9.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.5553, allocations: 40.66 kB / 0.5009 GB, free: 9.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5553, allocations: 0 / 0.5009 GB, free: 9.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002832/0.5556, allocations: 151.5 kB / 0.501 GB, free: 9.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.5556, allocations: 7.625 kB / 0.501 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.5556, allocations: 3.719 kB / 0.501 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.5557, allocations: 3.844 kB / 0.501 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.5559, allocations: 21.89 kB / 0.501 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.5559, allocations: 3.812 kB / 0.501 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.556, allocations: 14.09 kB / 0.5011 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.556, allocations: 7.719 kB / 0.5011 GB, free: 9.785 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "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 () * 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.0001445/0.5562, allocations: 130.7 kB / 0.5012 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003529/0.5565, allocations: 162.5 kB / 0.5013 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.5566, allocations: 19.58 kB / 0.5014 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.67e-05/0.5567, allocations: 17.75 kB / 0.5014 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.5567, allocations: 0 / 0.5014 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.331e-06/0.5567, allocations: 0 / 0.5014 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.5567, allocations: 7.906 kB / 0.5014 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005495/0.5573, allocations: 402.6 kB / 0.5018 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.5573, allocations: 3.906 kB / 0.5018 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.5574, allocations: 14.03 kB / 0.5018 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.5574, allocations: 6.781 kB / 0.5018 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.5575, allocations: 0 / 0.5018 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.5575, allocations: 0 / 0.5018 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5575, allocations: 3.688 kB / 0.5018 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000372/0.5579, allocations: 287.7 kB / 0.5021 GB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.641e-05/0.5579, allocations: 88.17 kB / 0.5022 GB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.558, allocations: 6.578 kB / 0.5022 GB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.5582, allocations: 10.08 kB / 0.5022 GB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.5583, allocations: 10.53 kB / 0.5022 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.5583, allocations: 11.12 kB / 0.5022 GB, free: 9.055 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.609e-05/0.5584, allocations: 118.7 kB / 0.5023 GB, free: 8.973 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5584, allocations: 0 / 0.5023 GB, free: 8.973 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003925/0.5588, allocations: 18.72 kB / 0.5023 GB, free: 8.973 MB / 330.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]) * 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.0007662/0.5596, allocations: 0.9625 MB / 0.5033 GB, free: 8.199 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.5599, allocations: 94.75 kB / 0.5033 GB, free: 8.191 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5599, allocations: 0 / 0.5033 GB, free: 8.191 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.801e-05/0.56, allocations: 41.27 kB / 0.5034 GB, free: 8.191 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.5604, allocations: 33.41 kB / 0.5034 GB, free: 8.184 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008157/0.5612, allocations: 243.2 kB / 0.5037 GB, free: 8.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.5615, allocations: 0.7247 MB / 0.5044 GB, free: 7.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.821e-05/0.5615, allocations: 16.08 kB / 0.5044 GB, free: 7.332 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/0.5616, allocations: 36.02 kB / 0.5044 GB, free: 7.324 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5616, allocations: 0 / 0.5044 GB, free: 7.324 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0415/0.6031, allocations: 2.101 MB / 0.5065 GB, free: 7.051 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002665/0.6035, allocations: 151.8 kB / 0.5066 GB, free: 6.863 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/2.989, allocations: 0 / 0.5066 GB, free: 6.863 MB / 330.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)