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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007659/0.000766, allocations: 102.9 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007103/0.0007103, allocations: 179.9 kB / 16.97 MB, free: 6.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 223.2 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.05994/0.05994, allocations: 12.6 MB / 284 MB, free: 8.578 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000644/0.000644, allocations: 27.98 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07385/0.0745, allocations: 50.39 MB / 395.5 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001975/0.07651, allocations: 1.438 MB / 397 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007829/0.07732, allocations: 0.527 MB / 397.5 MB, free: 452 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.806e-05/0.0774, allocations: 3.938 kB / 397.5 MB, free: 448 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.07752, allocations: 19.91 kB / 397.5 MB, free: 428 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.07759, allocations: 19.86 kB / 397.6 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.07789, allocations: 63.86 kB / 397.6 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.07804, allocations: 119.6 kB / 397.7 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.07816, allocations: 32.89 kB / 397.8 MB, free: 192 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.07829, allocations: 55.69 kB / 397.8 MB, free: 136 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.07846, allocations: 67.73 kB / 397.9 MB, free: 68 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.07849, allocations: 4 kB / 397.9 MB, free: 64 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.07852, allocations: 4 kB / 397.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.07859, allocations: 43.81 kB / 397.9 MB, free: 16 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.755e-05/0.07868, allocations: 69.52 kB / 398 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.07882, allocations: 99.75 kB / 398.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.07884, allocations: 4 kB / 398.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.07885, allocations: 7.984 kB / 398.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.07886, allocations: 0 / 398.1 MB, free: 15.83 MB / 302.1 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.0006559/0.07952, allocations: 419.1 kB / 398.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.07957, allocations: 16.03 kB / 398.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.668e-05/0.07962, allocations: 16.75 kB / 398.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.07982, allocations: 216 kB / 398.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.07985, allocations: 8.375 kB / 398.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.07987, allocations: 4.375 kB / 398.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.08025, allocations: 217.2 kB / 399 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.08027, allocations: 0 / 399 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.08029, allocations: 3.938 kB / 399 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.0803, allocations: 3.984 kB / 399 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.08046, allocations: 79.94 kB / 399.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004612/0.08093, allocations: 349.4 kB / 399.4 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.08116, allocations: 133.2 kB / 399.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.08128, allocations: 73.69 kB / 399.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.08131, allocations: 7.984 kB / 399.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/0.0815, allocations: 99.23 kB / 399.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.08151, allocations: 0 / 399.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004551/0.08197, allocations: 241.3 kB / 400 MB, free: 13.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.08204, allocations: 89.03 kB / 400 MB, free: 13.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.08217, allocations: 162.1 kB / 400.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.08219, allocations: 29.7 kB / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.925e-05/0.08225, allocations: 100.1 kB / 400.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.0823, allocations: 23.7 kB / 400.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.08234, allocations: 25.7 kB / 400.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.08245, allocations: 330.8 kB / 400.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.676e-05/0.08253, allocations: 31.98 kB / 400.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.08265, allocations: 108.5 kB / 400.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.08289, allocations: 173.2 kB / 401 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.0829, allocations: 0 / 401 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002681/0.08317, allocations: 177.3 kB / 401.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.0832, allocations: 4 kB / 401.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.08322, allocations: 7.938 kB / 401.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.08324, allocations: 4 kB / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.08336, allocations: 24.44 kB / 401.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.08338, allocations: 15.88 kB / 401.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.984e-05/0.08346, allocations: 15.84 kB / 401.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.08348, allocations: 11.98 kB / 401.3 MB, free: 12.36 MB / 302.1 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.0001401/0.08362, allocations: 137.8 kB / 401.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-05/0.08373, allocations: 73.72 kB / 401.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.089e-05/0.08378, allocations: 24.75 kB / 401.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.08379, allocations: 3.984 kB / 401.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.0838, allocations: 4 kB / 401.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.08381, allocations: 0 / 401.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/0.0843, allocations: 458.7 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.08431, allocations: 0 / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.079e-05/0.08439, allocations: 15.98 kB / 402 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.0844, allocations: 96 / 402 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.08442, allocations: 7.922 kB / 402 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.08443, allocations: 15.88 kB / 402 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.08443, allocations: 0 / 402 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003298/0.08477, allocations: 280.2 kB / 402.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.08482, allocations: 92.91 kB / 402.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.08486, allocations: 12 kB / 402.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.08498, allocations: 19.92 kB / 402.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.08502, allocations: 7.984 kB / 402.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.08504, allocations: 8 kB / 402.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.168e-05/0.08513, allocations: 119.1 kB / 402.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08514, allocations: 0 / 402.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.08539, allocations: 20 kB / 402.5 MB, free: 10.97 MB / 302.1 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 0.000101/0.0855, allocations: 111.2 kB / 402.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002491/0.08576, allocations: 131.8 kB / 402.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.08577, allocations: 0 / 402.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.173e-05/0.08587, allocations: 43.92 kB / 402.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.0862, allocations: 36.69 kB / 402.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004784/0.08669, allocations: 318.7 kB / 403.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.08695, allocations: 0.72 MB / 403.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.916e-05/0.087, allocations: 12.88 kB / 403.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.08704, allocations: 15.44 kB / 403.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of SimCode: time 1.683e-06/0.08704, allocations: 0 / 403.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Templates: time 0.00294/0.08999, allocations: 1.058 MB / 405 MB, free: 8.465 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: