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.001204/0.001204, allocations: 173.4 kB / 16.76 MB, free: 5.031 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.477/1.477, allocations: 205 MB / 222.5 MB, free: 9.062 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.000772/0.000772, allocations: 78.39 kB / 270.5 MB, free: 8.668 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.1185/0.1185, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005149/0.0005152, allocations: 8 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001553/0.1125, allocations: 1.449 MB / 443.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006554/0.1132, allocations: 0.5386 MB / 443.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.463e-05/0.1133, allocations: 7.938 kB / 443.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.1134, allocations: 19.84 kB / 443.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.628e-05/0.1135, allocations: 27.84 kB / 443.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.1138, allocations: 51.94 kB / 443.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.1139, allocations: 119.6 kB / 443.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.114, allocations: 32.88 kB / 443.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.077e-05/0.1141, allocations: 55.7 kB / 444 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1143, allocations: 75.72 kB / 444 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.1143, allocations: 4 kB / 444.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.809e-05/0.1143, allocations: 4 kB / 444.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.712e-05/0.1144, allocations: 43.83 kB / 444.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.173e-05/0.1144, allocations: 39.73 kB / 444.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.391e-05/0.1145, allocations: 72.09 kB / 444.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.1145, allocations: 0 / 444.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1145, allocations: 0 / 444.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.1146, allocations: 0 / 444.2 MB, free: 13.86 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.0005563/0.1151, allocations: 431 kB / 444.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.1152, allocations: 12.03 kB / 444.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.1152, allocations: 12.75 kB / 444.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.1154, allocations: 224 kB / 444.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.1154, allocations: 4.375 kB / 444.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.1154, allocations: 8.375 kB / 444.9 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.1158, allocations: 217.8 kB / 445.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1158, allocations: 4 kB / 445.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1158, allocations: 4 kB / 445.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1158, allocations: 0 / 445.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.116, allocations: 75.95 kB / 445.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.1164, allocations: 349.4 kB / 445.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.1166, allocations: 133.2 kB / 445.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.1167, allocations: 73.62 kB / 445.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.1167, allocations: 8 kB / 445.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.1169, allocations: 91.47 kB / 445.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.1169, allocations: 3.938 kB / 445.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004002/0.1173, allocations: 245.3 kB / 446.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.1174, allocations: 89.11 kB / 446.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.57e-05/0.1174, allocations: 162.1 kB / 446.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.1175, allocations: 29.69 kB / 446.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.234e-05/0.1175, allocations: 104.1 kB / 446.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.1175, allocations: 23.7 kB / 446.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.1176, allocations: 17.72 kB / 446.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.977e-05/0.1176, allocations: 334.8 kB / 446.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.849e-05/0.1177, allocations: 35.98 kB / 446.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.353e-05/0.1178, allocations: 111.2 kB / 446.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001897/0.118, allocations: 165.3 kB / 447.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.118, allocations: 0 / 447.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002302/0.1182, allocations: 185.2 kB / 447.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.1182, allocations: 4 kB / 447.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1183, allocations: 4.375 kB / 447.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1183, allocations: 8 kB / 447.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.767e-05/0.1184, allocations: 23.92 kB / 447.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1184, allocations: 4 kB / 447.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.538e-05/0.1185, allocations: 28.12 kB / 447.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1185, allocations: 4 kB / 447.4 MB, free: 10.38 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 (sampler.firstTrigger,$PRE.sampler.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.x[1],$PRE.stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],stateSpace2.sampleTrigger,$whenCondition1,sampler.sampleTrigger,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.1186, allocations: 142.6 kB / 447.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.1187, allocations: 77.75 kB / 447.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.1187, allocations: 20.7 kB / 447.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1187, allocations: 4 kB / 447.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1188, allocations: 0 / 447.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1188, allocations: 0 / 447.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003839/0.1192, allocations: 462.4 kB / 448.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1192, allocations: 0 / 448.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.907e-05/0.1192, allocations: 19.92 kB / 448.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1193, allocations: 0 / 448.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1193, allocations: 0 / 448.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1193, allocations: 7.938 kB / 448.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1193, allocations: 7.922 kB / 448.1 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.1196, allocations: 284.2 kB / 448.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.441e-05/0.1196, allocations: 96.91 kB / 448.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.1196, allocations: 4 kB / 448.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.1198, allocations: 23.92 kB / 448.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.1198, allocations: 7.938 kB / 448.5 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.1198, allocations: 7.984 kB / 448.5 MB, free: 9.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.1199, allocations: 123.1 kB / 448.6 MB, free: 9 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1199, allocations: 0 / 448.6 MB, free: 9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.1201, allocations: 16 kB / 448.6 MB, free: 8.984 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.037e-05/0.1202, allocations: 107.2 kB / 448.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002175/0.1205, allocations: 131.8 kB / 448.9 MB, free: 8.738 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1205, allocations: 4 kB / 448.9 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.412e-05/0.1206, allocations: 43.92 kB / 448.9 MB, free: 8.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.1209, allocations: 40.28 kB / 449 MB, free: 8.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/0.1213, allocations: 348.8 kB / 449.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.1214, allocations: 0.72 MB / 450 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.377e-05/0.1215, allocations: 19.42 kB / 450 MB, free: 7.512 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1215, allocations: 0 / 450 MB, free: 7.512 MB / 298.7 MB Notification: Performance of Templates: time 0.00238/0.1239, allocations: 1.599 MB / 451.6 MB, free: 5.91 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)