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.002626/0.002633, allocations: 182.4 kB / 13.23 MB, free: 2.086 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.321/2.321, allocations: 205.2 MB / 219 MB, free: 9.195 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.001787/0.001787, allocations: 82.66 kB / 267.1 MB, free: 9.266 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.1074/0.1074, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.714e-05, allocations: 8 kB / 386.1 MB, free: 69.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4606/0.593, allocations: 79.27 MB / 0.5036 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.5933, allocations: 61 kB / 0.5037 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01147/0.6047, allocations: 2.323 MB / 0.506 GB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6048, allocations: 0 / 0.506 GB, free: 11.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.6048, allocations: 3.844 kB / 0.506 GB, free: 11.56 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.0007341/0.6056, allocations: 410.9 kB / 0.5064 GB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.6056, allocations: 11.78 kB / 0.5064 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.48e-05/0.6057, allocations: 42.64 kB / 0.5064 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.913e-05/0.6058, allocations: 15.22 kB / 0.5064 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.6061, allocations: 206.4 kB / 0.5066 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.6061, allocations: 14.98 kB / 0.5066 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.6061, allocations: 7.031 kB / 0.5067 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.6066, allocations: 200.5 kB / 0.5068 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.6067, allocations: 0 / 0.5068 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.6067, allocations: 14.55 kB / 0.5069 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.6067, allocations: 3.906 kB / 0.5069 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.6069, allocations: 65.34 kB / 0.5069 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.6077, allocations: 335.5 kB / 0.5072 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.608, allocations: 129.6 kB / 0.5074 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.6081, allocations: 58.27 kB / 0.5074 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.6082, allocations: 7.609 kB / 0.5074 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.6084, allocations: 87.41 kB / 0.5075 GB, free: 10.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.246e-06/0.6084, allocations: 0 / 0.5075 GB, free: 10.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005082/0.6089, allocations: 183.3 kB / 0.5077 GB, free: 10.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.609, allocations: 84.94 kB / 0.5078 GB, free: 10.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.6092, allocations: 135.6 kB / 0.5079 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.6092, allocations: 32.98 kB / 0.5079 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.6093, allocations: 102.2 kB / 0.508 GB, free: 9.973 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.6094, allocations: 33.17 kB / 0.5081 GB, free: 9.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.6094, allocations: 2.562 kB / 0.5081 GB, free: 9.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.968e-05/0.6095, allocations: 329.8 kB / 0.5084 GB, free: 9.633 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.436e-05/0.6095, allocations: 22.28 kB / 0.5084 GB, free: 9.633 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.6097, allocations: 96.84 kB / 0.5085 GB, free: 9.539 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.6098, allocations: 55 kB / 0.5085 GB, free: 9.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.6098, allocations: 3.188 kB / 0.5085 GB, free: 9.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003436/0.6102, allocations: 158.4 kB / 0.5087 GB, free: 9.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.6102, allocations: 3.625 kB / 0.5087 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.6103, allocations: 7.828 kB / 0.5087 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.6103, allocations: 7.281 kB / 0.5087 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.6105, allocations: 22.11 kB / 0.5087 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.6105, allocations: 15.55 kB / 0.5088 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.6107, allocations: 10.94 kB / 0.5088 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.6107, allocations: 11.64 kB / 0.5088 GB, free: 9.43 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.0002057/0.6109, allocations: 128.4 kB / 0.5089 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.6111, allocations: 71.33 kB / 0.509 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.089e-05/0.6112, allocations: 27.83 kB / 0.509 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.6112, allocations: 7.859 kB / 0.509 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.393e-06/0.6112, allocations: 0 / 0.509 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.6112, allocations: 0 / 0.509 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006886/0.6119, allocations: 440.3 kB / 0.5094 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.612, allocations: 0 / 0.5094 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.6121, allocations: 18.81 kB / 0.5094 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.6121, allocations: 0 / 0.5094 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.6122, allocations: 7.984 kB / 0.5094 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.6122, allocations: 3.844 kB / 0.5094 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6122, allocations: 3.953 kB / 0.5095 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.6126, allocations: 282.2 kB / 0.5097 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.6127, allocations: 88.8 kB / 0.5098 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.077e-05/0.6128, allocations: 11.64 kB / 0.5098 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.613, allocations: 19.67 kB / 0.5098 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.613, allocations: 11.05 kB / 0.5098 GB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.6131, allocations: 3.875 kB / 0.5098 GB, free: 8.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000112/0.6132, allocations: 127 kB / 0.51 GB, free: 8.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6132, allocations: 0 / 0.51 GB, free: 8.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003774/0.6136, allocations: 22.31 kB / 0.51 GB, free: 8.496 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.0009008/0.6145, allocations: 0.9619 MB / 0.5109 GB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.6149, allocations: 109.9 kB / 0.511 GB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6149, allocations: 0.75 kB / 0.511 GB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.615, allocations: 37.28 kB / 0.5111 GB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004881/0.6155, allocations: 50.17 kB / 0.5111 GB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009112/0.6165, allocations: 246 kB / 0.5114 GB, free: 7.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.6167, allocations: 0.7223 MB / 0.5121 GB, free: 6.785 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.442e-05/0.6168, allocations: 16.56 kB / 0.5121 GB, free: 6.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.018e-05/0.6169, allocations: 40.06 kB / 0.5121 GB, free: 6.762 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6169, allocations: 0 / 0.5121 GB, free: 6.762 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.6399, allocations: 2.439 MB / 0.5145 GB, free: 5.52 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002967/0.6402, allocations: 177.2 kB / 0.5147 GB, free: 5.289 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.521/3.161, allocations: 4 kB / 0.5147 GB, free: 5.285 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)