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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001086/0.001087, allocations: 175.9 kB / 16.45 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007408/0.000741, allocations: 82.36 kB / 270.9 MB, free: 8.363 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.08721/0.08721, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004613, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1095, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001688/0.1112, allocations: 1.402 MB / 444.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006824/0.1119, allocations: 0.5312 MB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.784e-05/0.112, allocations: 7.938 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.1121, allocations: 15.92 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.867e-05/0.1122, allocations: 23.83 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.1125, allocations: 43.89 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.1127, allocations: 115.6 kB / 445.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1128, allocations: 28.88 kB / 445.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.1129, allocations: 51.77 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.1131, allocations: 71.7 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1131, allocations: 4 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.866e-05/0.1131, allocations: 7.938 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.644e-05/0.1132, allocations: 39.89 kB / 445.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.413e-05/0.1132, allocations: 41.64 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.956e-05/0.1133, allocations: 80.03 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1134, allocations: 0 / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1134, allocations: 0 / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1134, allocations: 0 / 445.5 MB, free: 13.32 MB / 298.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.0006062/0.114, allocations: 426.9 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.114, allocations: 8.031 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.1141, allocations: 15.81 kB / 445.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.1143, allocations: 214.8 kB / 446.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.1143, allocations: 4 kB / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.1143, allocations: 12 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.1147, allocations: 204.9 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1147, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.1147, allocations: 0 / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1147, allocations: 4 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001549/0.1149, allocations: 79.89 kB / 446.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004375/0.1154, allocations: 345.4 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.1156, allocations: 141.2 kB / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.1157, allocations: 61.69 kB / 447 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1157, allocations: 8.141 kB / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000187/0.1159, allocations: 107.3 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.1159, allocations: 0 / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004309/0.1164, allocations: 237.3 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1164, allocations: 89.11 kB / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.1165, allocations: 162.1 kB / 447.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1165, allocations: 33.7 kB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.986e-05/0.1166, allocations: 100.5 kB / 447.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.1166, allocations: 23.7 kB / 447.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-06/0.1166, allocations: 8 kB / 447.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.686e-05/0.1167, allocations: 326.8 kB / 448 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.114e-05/0.1168, allocations: 35.91 kB / 448.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.756e-05/0.1169, allocations: 109.4 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.146e-05/0.117, allocations: 55.92 kB / 448.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.117, allocations: 0 / 448.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002301/0.1172, allocations: 181.4 kB / 448.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1172, allocations: 6.031 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1173, allocations: 4 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1173, allocations: 4 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.1174, allocations: 23.98 kB / 448.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.1174, allocations: 7.938 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.847e-05/0.1175, allocations: 19.78 kB / 448.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1175, allocations: 12 kB / 448.5 MB, free: 10.02 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(flow=false 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.0001472/0.1177, allocations: 142.6 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.29e-05/0.1177, allocations: 77.62 kB / 448.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.1178, allocations: 20.66 kB / 448.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1178, allocations: 4 kB / 448.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1178, allocations: 0 / 448.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1178, allocations: 0 / 448.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004157/0.1182, allocations: 466.2 kB / 449.2 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1182, allocations: 0 / 449.2 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.1183, allocations: 15.94 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1183, allocations: 4 kB / 449.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1184, allocations: 3.984 kB / 449.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1184, allocations: 3.953 kB / 449.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1184, allocations: 4 kB / 449.2 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.1187, allocations: 288.2 kB / 449.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.1187, allocations: 88.92 kB / 449.6 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.1187, allocations: 8.234 kB / 449.6 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1189, allocations: 11.98 kB / 449.6 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.1189, allocations: 15.94 kB / 449.6 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.1189, allocations: 11.98 kB / 449.6 MB, free: 8.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.496e-05/0.119, allocations: 119.1 kB / 449.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.119, allocations: 3.938 kB / 449.8 MB, free: 8.648 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.1192, allocations: 24 kB / 449.8 MB, free: 8.625 MB / 298.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 9.683e-05/0.1193, allocations: 107.3 kB / 449.9 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002428/0.1196, allocations: 128 kB / 450 MB, free: 8.383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1196, allocations: 8 kB / 450 MB, free: 8.375 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.57e-05/0.1197, allocations: 43.92 kB / 450.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.12, allocations: 36 kB / 450.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005128/0.1205, allocations: 340.8 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.1207, allocations: 0.7238 MB / 451.1 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.1207, allocations: 15.44 kB / 451.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1208, allocations: 0 / 451.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of Templates: time 0.002778/0.1235, allocations: 1.599 MB / 452.8 MB, free: 5.562 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)