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.001035/0.001035, allocations: 98.7 kB / 15.74 MB, free: 432 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.001096/0.001096, allocations: 182.1 kB / 16.62 MB, free: 6.883 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.63/1.63, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.09982/0.09982, allocations: 12.59 MB / 283.6 MB, free: 8.711 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.0007578/0.0007579, allocations: 20 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.135, allocations: 50.38 MB / 394.9 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.002119/0.1372, allocations: 1.404 MB / 396.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009835/0.1382, allocations: 0.5195 MB / 396.8 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.1383, allocations: 3.938 kB / 396.8 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1385, allocations: 15.92 kB / 396.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.568e-05/0.1386, allocations: 35.88 kB / 396.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.1389, allocations: 39.89 kB / 396.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.1391, allocations: 87.81 kB / 397 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.1392, allocations: 24.89 kB / 397 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1394, allocations: 51.75 kB / 397.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.1395, allocations: 75.72 kB / 397.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.1396, allocations: 0 / 397.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.889e-05/0.1396, allocations: 4 kB / 397.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-05/0.1397, allocations: 35.89 kB / 397.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.7e-05/0.1397, allocations: 49.62 kB / 397.2 MB, free: 460 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.1398, allocations: 76.09 kB / 397.3 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1399, allocations: 0 / 397.3 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1399, allocations: 0 / 397.3 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1399, allocations: 0 / 397.3 MB, free: 384 kB / 286.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.000743/0.1406, allocations: 426.9 kB / 397.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1407, allocations: 8.031 kB / 397.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.24e-05/0.1407, allocations: 19.75 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.141, allocations: 210.8 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.141, allocations: 11.98 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.1411, allocations: 8 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/0.1415, allocations: 200.9 kB / 398.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1415, allocations: 4 kB / 398.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.1416, allocations: 0 / 398.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1416, allocations: 4 kB / 398.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.1418, allocations: 75.89 kB / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006437/0.1424, allocations: 345.5 kB / 398.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.1427, allocations: 137.1 kB / 398.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.1427, allocations: 4.156 kB / 398.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.143, allocations: 103.3 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.143, allocations: 3.938 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000553/0.1436, allocations: 245.5 kB / 399.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/0.1437, allocations: 85.11 kB / 399.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.1439, allocations: 166.1 kB / 399.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.1439, allocations: 25.7 kB / 399.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.144, allocations: 104.1 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.144, allocations: 27.7 kB / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-06/0.144, allocations: 0 / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1442, allocations: 334.7 kB / 399.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.435e-05/0.1443, allocations: 32.09 kB / 399.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.1444, allocations: 112.4 kB / 399.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.1445, allocations: 55.97 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1445, allocations: 3.938 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002915/0.1448, allocations: 177.3 kB / 400.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1448, allocations: 4 kB / 400.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.1449, allocations: 4 kB / 400.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1449, allocations: 4 kB / 400.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.145, allocations: 23.92 kB / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.145, allocations: 4 kB / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.825e-05/0.1451, allocations: 24.08 kB / 400.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.1451, allocations: 8 kB / 400.2 MB, free: 13.16 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 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002026/0.1453, allocations: 153.5 kB / 400.4 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.417e-05/0.1454, allocations: 73.58 kB / 400.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.1455, allocations: 20.7 kB / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1455, allocations: 4 kB / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1455, allocations: 3.938 kB / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1455, allocations: 0 / 400.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006028/0.1461, allocations: 458.6 kB / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1462, allocations: 0 / 400.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.843e-05/0.1462, allocations: 15.98 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.1463, allocations: 4 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1463, allocations: 96 / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1463, allocations: 3.938 kB / 401 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/0.1463, allocations: 11.94 kB / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.1467, allocations: 293.9 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.1468, allocations: 92.91 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.1468, allocations: 8 kB / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.147, allocations: 19.94 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.147, allocations: 4 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.1471, allocations: 11.98 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.53e-05/0.1472, allocations: 119.1 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1472, allocations: 0 / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.1475, allocations: 24 kB / 401.5 MB, free: 11.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001417/0.1476, allocations: 111.2 kB / 401.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003003/0.1479, allocations: 131.8 kB / 401.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1479, allocations: 0 / 401.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.1481, allocations: 39.98 kB / 401.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.1484, allocations: 36.64 kB / 401.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005553/0.1489, allocations: 302.8 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.1492, allocations: 0.7238 MB / 402.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.249e-05/0.1493, allocations: 12.88 kB / 402.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.116e-05/0.1493, allocations: 15.44 kB / 402.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1494, allocations: 0 / 402.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Templates: time 0.003809/0.1532, allocations: 1.011 MB / 403.9 MB, free: 9.301 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: