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.001765/0.001765, allocations: 104.2 kB / 16.45 MB, free: 6.445 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.002103/0.002103, allocations: 190 kB / 17.38 MB, free: 5.672 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.845/1.845, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.0918/0.0918, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001816/0.001816, allocations: 91.33 kB / 394.1 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1343, allocations: 49.4 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.003808/0.1382, allocations: 1.727 MB / 445.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1395, allocations: 0.5424 MB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1396, allocations: 7.938 kB / 445.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.1398, allocations: 19.8 kB / 445.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.852e-05/0.1399, allocations: 27.78 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.1403, allocations: 63.86 kB / 445.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.1405, allocations: 123.6 kB / 446.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.1407, allocations: 37.03 kB / 446.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.1409, allocations: 67.69 kB / 446.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.1411, allocations: 75.73 kB / 446.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.92e-05/0.1411, allocations: 8 kB / 446.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.377e-05/0.1412, allocations: 8 kB / 446.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.902e-05/0.1413, allocations: 51.81 kB / 446.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.083e-05/0.1414, allocations: 51.72 kB / 446.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.1416, allocations: 107.6 kB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1416, allocations: 4 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1416, allocations: 0 / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.1416, allocations: 4 kB / 446.5 MB, free: 13.55 MB / 334.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.0008499/0.1425, allocations: 450.8 kB / 446.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1425, allocations: 8.031 kB / 446.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.1426, allocations: 20.75 kB / 446.9 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.1429, allocations: 210.1 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1429, allocations: 8.375 kB / 447.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.1429, allocations: 12.36 kB / 447.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.1433, allocations: 205.2 kB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1434, allocations: 0 / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1434, allocations: 3.984 kB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1434, allocations: 4 kB / 447.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.1436, allocations: 71.89 kB / 447.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005772/0.1442, allocations: 337.5 kB / 447.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.1444, allocations: 153.1 kB / 447.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1446, allocations: 65.69 kB / 448 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1446, allocations: 4 kB / 448 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.1448, allocations: 99.23 kB / 448.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.1448, allocations: 0 / 448.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005457/0.1454, allocations: 233.5 kB / 448.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.1454, allocations: 89.05 kB / 448.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1456, allocations: 158 kB / 448.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1456, allocations: 29.7 kB / 448.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.1457, allocations: 104.1 kB / 448.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.1458, allocations: 35.64 kB / 448.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/0.1458, allocations: 29.72 kB / 448.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.146, allocations: 334.8 kB / 449.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.873e-05/0.146, allocations: 31.92 kB / 449.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.1462, allocations: 105.4 kB / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.1465, allocations: 157.3 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1465, allocations: 0 / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002772/0.1468, allocations: 181.2 kB / 449.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1468, allocations: 4 kB / 449.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1468, allocations: 4 kB / 449.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.1468, allocations: 4 kB / 449.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.1469, allocations: 23.92 kB / 449.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.147, allocations: 4 kB / 449.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.935e-05/0.147, allocations: 8.344 kB / 449.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.1471, allocations: 12 kB / 449.6 MB, free: 10.09 MB / 334.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.0001727/0.1472, allocations: 145.6 kB / 449.7 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1473, allocations: 77.48 kB / 449.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.1474, allocations: 20.7 kB / 449.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1474, allocations: 0 / 449.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1474, allocations: 4 kB / 449.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1474, allocations: 0 / 449.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.148, allocations: 458.7 kB / 450.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.148, allocations: 4 kB / 450.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.083e-05/0.1481, allocations: 11.98 kB / 450.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1481, allocations: 0 / 450.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1481, allocations: 4 kB / 450.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.1481, allocations: 7.938 kB / 450.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1481, allocations: 3.984 kB / 450.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.1485, allocations: 292.4 kB / 450.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.1485, allocations: 100.8 kB / 450.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.1486, allocations: 11.98 kB / 450.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.1487, allocations: 11.92 kB / 450.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.1488, allocations: 8 kB / 450.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.1488, allocations: 7.984 kB / 450.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.227e-05/0.1489, allocations: 119.2 kB / 450.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1489, allocations: 0 / 450.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.1492, allocations: 24 kB / 450.9 MB, free: 8.699 MB / 334.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.000126/0.1493, allocations: 99.25 kB / 451 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002782/0.1496, allocations: 119.8 kB / 451.1 MB, free: 8.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1496, allocations: 8.625 kB / 451.1 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.69e-05/0.1497, allocations: 43.97 kB / 451.1 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.1501, allocations: 48.09 kB / 451.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.1507, allocations: 260.9 kB / 451.4 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.151, allocations: 0.7236 MB / 452.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.227e-05/0.1511, allocations: 16.88 kB / 452.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.1511, allocations: 11.44 kB / 452.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.1511, allocations: 0 / 452.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of Templates: time 0.00386/0.155, allocations: 1.21 MB / 453.4 MB, free: 6.102 MB / 334.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)