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.00164/0.00164, allocations: 102.5 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 189.9 kB / 17.24 MB, free: 5.539 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.783/1.783, allocations: 205.1 MB / 223.1 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0877/0.0877, allocations: 12.59 MB / 283.1 MB, free: 15.46 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.002175/0.002175, allocations: 95.17 kB / 343.5 MB, free: 2.934 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4118, allocations: 49.37 MB / 392.9 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.004367/0.4162, allocations: 1.729 MB / 394.6 MB, free: 48.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.4174, allocations: 0.541 MB / 395.1 MB, free: 47.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.4176, allocations: 6.156 kB / 395.1 MB, free: 47.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.4178, allocations: 19.28 kB / 395.2 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.516e-05/0.4179, allocations: 29.39 kB / 395.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.4184, allocations: 67.56 kB / 395.3 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.4187, allocations: 130 kB / 395.4 MB, free: 47.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.4189, allocations: 30.77 kB / 395.4 MB, free: 47.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.4191, allocations: 53.94 kB / 395.5 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003378/0.4194, allocations: 89.8 kB / 395.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.769e-05/0.4195, allocations: 8.312 kB / 395.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.376e-05/0.4195, allocations: 8.531 kB / 395.6 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.4197, allocations: 43.86 kB / 395.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.4198, allocations: 55.94 kB / 395.7 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.4201, allocations: 114.5 kB / 395.8 MB, free: 47.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.4201, allocations: 0 / 395.8 MB, free: 47.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4201, allocations: 0 / 395.8 MB, free: 47.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.4201, allocations: 0 / 395.8 MB, free: 47.35 MB / 318.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.0009448/0.4211, allocations: 443.7 kB / 396.2 MB, free: 46.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.159e-05/0.4211, allocations: 7.969 kB / 396.2 MB, free: 46.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.4212, allocations: 17.19 kB / 396.2 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.4215, allocations: 210.9 kB / 396.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.4215, allocations: 7.984 kB / 396.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.557e-05/0.4216, allocations: 6.828 kB / 396.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.4221, allocations: 207.3 kB / 396.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4221, allocations: 0 / 396.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.4221, allocations: 10.06 kB / 396.7 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-06/0.4222, allocations: 1.906 kB / 396.7 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.4224, allocations: 76.12 kB / 396.8 MB, free: 46.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.4229, allocations: 339.9 kB / 397.1 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.4232, allocations: 137.7 kB / 397.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.4233, allocations: 70.89 kB / 397.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.4233, allocations: 6.594 kB / 397.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.4235, allocations: 98.09 kB / 397.4 MB, free: 45.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.4236, allocations: 0 / 397.4 MB, free: 45.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005285/0.4241, allocations: 231.2 kB / 397.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.4242, allocations: 90.44 kB / 397.7 MB, free: 45.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.4243, allocations: 162.5 kB / 397.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.4243, allocations: 30.83 kB / 397.9 MB, free: 45.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.4244, allocations: 101.6 kB / 398 MB, free: 45.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.688e-05/0.4244, allocations: 23.94 kB / 398 MB, free: 45.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.796e-05/0.4245, allocations: 37.39 kB / 398.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.388e-05/0.4246, allocations: 327.5 kB / 398.4 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.117e-05/0.4246, allocations: 33.47 kB / 398.4 MB, free: 45.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.4248, allocations: 112.8 kB / 398.5 MB, free: 44.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.425, allocations: 160.4 kB / 398.7 MB, free: 44.83 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.425, allocations: 1.344 kB / 398.7 MB, free: 44.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00032/0.4254, allocations: 168.2 kB / 398.8 MB, free: 44.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4254, allocations: 6.188 kB / 398.8 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4254, allocations: 11.11 kB / 398.9 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4254, allocations: 3.312 kB / 398.9 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.4256, allocations: 23.84 kB / 398.9 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.4256, allocations: 8.359 kB / 398.9 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.92e-05/0.4257, allocations: 12.69 kB / 398.9 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.4257, allocations: 11.06 kB / 398.9 MB, free: 44.71 MB / 318.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.0001756/0.4259, allocations: 143.6 kB / 399.1 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.426, allocations: 82.2 kB / 399.1 MB, free: 44.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.4261, allocations: 21.12 kB / 399.2 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.4261, allocations: 6.156 kB / 399.2 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4261, allocations: 0 / 399.2 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.4261, allocations: 5.078 kB / 399.2 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.4266, allocations: 449.1 kB / 399.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4266, allocations: 0 / 399.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.926e-05/0.4267, allocations: 17.08 kB / 399.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.4267, allocations: 6.891 kB / 399.6 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.4267, allocations: 1.625 kB / 399.6 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4267, allocations: 3.938 kB / 399.6 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4267, allocations: 1 kB / 399.6 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003613/0.4271, allocations: 292.7 kB / 399.9 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.527e-05/0.4272, allocations: 92.33 kB / 400 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.4272, allocations: 12.52 kB / 400 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.4273, allocations: 13.09 kB / 400 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.4274, allocations: 11.52 kB / 400 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.4274, allocations: 4.312 kB / 400 MB, free: 43.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.091e-05/0.4275, allocations: 118.6 kB / 400.2 MB, free: 43.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4275, allocations: 0 / 400.2 MB, free: 43.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00027/0.4278, allocations: 23.06 kB / 400.2 MB, free: 43.64 MB / 318.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.0001176/0.4279, allocations: 108.4 kB / 400.3 MB, free: 43.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003101/0.4282, allocations: 130.5 kB / 400.4 MB, free: 43.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4282, allocations: 0 / 400.4 MB, free: 43.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.4283, allocations: 47.62 kB / 400.5 MB, free: 43.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.4287, allocations: 41.73 kB / 400.5 MB, free: 43.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006107/0.4293, allocations: 279.8 kB / 400.8 MB, free: 43.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.4296, allocations: 0.7271 MB / 401.5 MB, free: 42.51 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.465e-05/0.4296, allocations: 7.922 kB / 401.5 MB, free: 42.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/0.4297, allocations: 21.23 kB / 401.5 MB, free: 42.49 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4297, allocations: 0 / 401.5 MB, free: 42.49 MB / 318.1 MB Notification: Performance of Templates: time 0.004485/0.4342, allocations: 1.157 MB / 402.7 MB, free: 41.93 MB / 318.1 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)