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.001423/0.001423, allocations: 103 kB / 16.02 MB, free: 6.277 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.001609/0.001609, allocations: 193.7 kB / 16.95 MB, free: 6.098 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.78/1.78, allocations: 205.1 MB / 222.8 MB, free: 12.43 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.09742/0.09743, allocations: 12.59 MB / 282.7 MB, free: 15.64 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.001861/0.001861, allocations: 83.88 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3954, allocations: 49.39 MB / 392.4 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.003853/0.3993, allocations: 1.786 MB / 394.1 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.4006, allocations: 0.539 MB / 394.7 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.4007, allocations: 1.062 kB / 394.7 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.4009, allocations: 22.92 kB / 394.7 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.097e-05/0.401, allocations: 24.75 kB / 394.7 MB, free: 47.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.4015, allocations: 54.17 kB / 394.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.4017, allocations: 135.2 kB / 394.9 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.4019, allocations: 26.27 kB / 394.9 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.4021, allocations: 57.58 kB / 395 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.4023, allocations: 86.08 kB / 395.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.4024, allocations: 7.969 kB / 395.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.541e-05/0.4024, allocations: 11.97 kB / 395.1 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.301e-05/0.4025, allocations: 43.28 kB / 395.1 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.788e-05/0.4026, allocations: 49.56 kB / 395.2 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002147/0.4028, allocations: 113.3 kB / 395.3 MB, free: 47.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4028, allocations: 0 / 395.3 MB, free: 47.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4029, allocations: 0 / 395.3 MB, free: 47.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.4029, allocations: 3.938 kB / 395.3 MB, free: 47.46 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.0007726/0.4036, allocations: 443.4 kB / 395.7 MB, free: 47.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4037, allocations: 9.828 kB / 395.7 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.4038, allocations: 15.89 kB / 395.8 MB, free: 47.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.404, allocations: 206.8 kB / 396 MB, free: 46.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.404, allocations: 8.422 kB / 396 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.404, allocations: 10.59 kB / 396 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005204/0.4046, allocations: 210.4 kB / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.4046, allocations: 0 / 396.2 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.4046, allocations: 5.781 kB / 396.2 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.4046, allocations: 2.781 kB / 396.2 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.4048, allocations: 82.14 kB / 396.3 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005504/0.4054, allocations: 337.3 kB / 396.6 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.4056, allocations: 138.6 kB / 396.7 MB, free: 46.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.4058, allocations: 70.16 kB / 396.8 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.4058, allocations: 1.531 kB / 396.8 MB, free: 46.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.406, allocations: 93.86 kB / 396.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.775e-06/0.4061, allocations: 3.984 kB / 396.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005183/0.4066, allocations: 237.1 kB / 397.1 MB, free: 46.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.4067, allocations: 89.55 kB / 397.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.4068, allocations: 157.5 kB / 397.4 MB, free: 45.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.4068, allocations: 28.48 kB / 397.4 MB, free: 45.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.503e-05/0.4069, allocations: 104.8 kB / 397.5 MB, free: 45.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.4069, allocations: 32.09 kB / 397.5 MB, free: 45.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.407, allocations: 33.75 kB / 397.6 MB, free: 45.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.867e-05/0.4071, allocations: 335 kB / 397.9 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.254e-05/0.4071, allocations: 30.11 kB / 397.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.4073, allocations: 108.7 kB / 398 MB, free: 45.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.4075, allocations: 161.5 kB / 398.2 MB, free: 45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4075, allocations: 0 / 398.2 MB, free: 45 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002788/0.4078, allocations: 176.4 kB / 398.4 MB, free: 44.9 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.4078, allocations: 7.281 kB / 398.4 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.4078, allocations: 10.28 kB / 398.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.4079, allocations: 3.594 kB / 398.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.408, allocations: 24.39 kB / 398.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.408, allocations: 3.656 kB / 398.4 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.827e-05/0.4081, allocations: 12.5 kB / 398.4 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.4081, allocations: 6.984 kB / 398.4 MB, free: 44.88 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.0001805/0.4083, allocations: 152.7 kB / 398.6 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.4084, allocations: 83.14 kB / 398.7 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.4085, allocations: 15.95 kB / 398.7 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.4085, allocations: 2.344 kB / 398.7 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.4085, allocations: 1.031 kB / 398.7 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4085, allocations: 1.188 kB / 398.7 MB, free: 44.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004962/0.409, allocations: 452.1 kB / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.409, allocations: 1.031 kB / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.686e-05/0.4091, allocations: 13.55 kB / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4091, allocations: 5.188 kB / 399.1 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.4091, allocations: 5.5 kB / 399.2 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.4091, allocations: 5.25 kB / 399.2 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4091, allocations: 3.984 kB / 399.2 MB, free: 44.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.4095, allocations: 284.5 kB / 399.4 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.09e-05/0.4096, allocations: 93.77 kB / 399.5 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.4096, allocations: 15.8 kB / 399.5 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.4097, allocations: 16.7 kB / 399.6 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.4098, allocations: 4.391 kB / 399.6 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.4098, allocations: 8.172 kB / 399.6 MB, free: 43.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.634e-05/0.4099, allocations: 121.5 kB / 399.7 MB, free: 43.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4099, allocations: 1.188 kB / 399.7 MB, free: 43.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000285/0.4102, allocations: 23.66 kB / 399.7 MB, free: 43.8 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.0001245/0.4103, allocations: 98.73 kB / 399.8 MB, free: 43.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.4106, allocations: 139.5 kB / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4106, allocations: 0 / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.4107, allocations: 47.45 kB / 400 MB, free: 43.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.4111, allocations: 42.97 kB / 400 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005545/0.4117, allocations: 310 kB / 400.3 MB, free: 43.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001858/0.4119, allocations: 0.7259 MB / 401.1 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.533e-05/0.4119, allocations: 12.41 kB / 401.1 MB, free: 42.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.412, allocations: 14.25 kB / 401.1 MB, free: 42.63 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.412, allocations: 3.938 kB / 401.1 MB, free: 42.62 MB / 318.1 MB Notification: Performance of Templates: time 0.003929/0.4159, allocations: 1.124 MB / 402.2 MB, free: 42.08 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)