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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009706/0.0009707, allocations: 168.9 kB / 16.8 MB, free: 4.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007739/0.0007739, allocations: 93.48 kB / 271.3 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07141/0.07141, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005361/0.0005364, allocations: 8.281 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001856/0.1099, allocations: 1.434 MB / 445.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008704/0.1108, allocations: 0.5269 MB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.111, allocations: 4 kB / 445.7 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.1111, allocations: 23.84 kB / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.165e-05/0.1112, allocations: 23.84 kB / 445.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.1116, allocations: 59.94 kB / 445.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.1118, allocations: 123.6 kB / 445.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.1119, allocations: 32.89 kB / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1121, allocations: 59.69 kB / 446 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1122, allocations: 71.72 kB / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.1123, allocations: 4 kB / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.265e-05/0.1123, allocations: 4 kB / 446 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.287e-05/0.1124, allocations: 39.84 kB / 446.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.125e-05/0.1125, allocations: 73.41 kB / 446.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001074/0.1126, allocations: 72.09 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1126, allocations: 7.938 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1126, allocations: 0 / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.1126, allocations: 4 kB / 446.2 MB, free: 12.85 MB / 298.7 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.0006662/0.1133, allocations: 427 kB / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1134, allocations: 8.031 kB / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.048e-05/0.1134, allocations: 20.75 kB / 446.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.1136, allocations: 204.1 kB / 446.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1136, allocations: 8.375 kB / 446.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.95e-05/0.1136, allocations: 4.375 kB / 446.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004069/0.114, allocations: 217.8 kB / 447.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1141, allocations: 3.938 kB / 447.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.1141, allocations: 4 kB / 447.1 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.1141, allocations: 4 kB / 447.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.1143, allocations: 75.89 kB / 447.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004661/0.1147, allocations: 341.5 kB / 447.5 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.115, allocations: 141.1 kB / 447.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.1151, allocations: 69.69 kB / 447.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1151, allocations: 4 kB / 447.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001786/0.1153, allocations: 95.41 kB / 447.8 MB, free: 11.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.723e-06/0.1153, allocations: 3.938 kB / 447.8 MB, free: 11.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004408/0.1157, allocations: 245.3 kB / 448.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.1158, allocations: 85.11 kB / 448.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1159, allocations: 162.1 kB / 448.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1159, allocations: 29.7 kB / 448.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.116, allocations: 100.1 kB / 448.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.116, allocations: 31.84 kB / 448.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.116, allocations: 0 / 448.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.27e-05/0.1161, allocations: 334.8 kB / 448.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.331e-05/0.1162, allocations: 31.98 kB / 448.8 MB, free: 10.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.201e-05/0.1163, allocations: 115.2 kB / 448.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.1165, allocations: 161.3 kB / 449.1 MB, free: 9.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1165, allocations: 0 / 449.1 MB, free: 9.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002528/0.1168, allocations: 185.2 kB / 449.3 MB, free: 9.484 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1168, allocations: 4 kB / 449.3 MB, free: 9.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1168, allocations: 4 kB / 449.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.1168, allocations: 4 kB / 449.3 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1169, allocations: 24.27 kB / 449.3 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.117, allocations: 8 kB / 449.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.117, allocations: 24.2 kB / 449.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.1171, allocations: 7.984 kB / 449.4 MB, free: 9.41 MB / 298.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001471/0.1172, allocations: 146.8 kB / 449.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.491e-05/0.1173, allocations: 81.58 kB / 449.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.1174, allocations: 16.66 kB / 449.6 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1174, allocations: 0 / 449.6 MB, free: 9.152 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.1174, allocations: 4 kB / 449.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1174, allocations: 0 / 449.6 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.1178, allocations: 462.1 kB / 450.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1178, allocations: 0 / 450.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.46e-05/0.1179, allocations: 12 kB / 450.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.1179, allocations: 0 / 450.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.118, allocations: 11.98 kB / 450.1 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.118, allocations: 7.938 kB / 450.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.118, allocations: 7.938 kB / 450.1 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.1183, allocations: 288.2 kB / 450.4 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.054e-05/0.1183, allocations: 88.92 kB / 450.5 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.1184, allocations: 4 kB / 450.5 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.1185, allocations: 23.92 kB / 450.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.1185, allocations: 7.984 kB / 450.5 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.1186, allocations: 4 kB / 450.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.538e-05/0.1186, allocations: 123.1 kB / 450.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1186, allocations: 0 / 450.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002479/0.1189, allocations: 20 kB / 450.6 MB, free: 8.016 MB / 298.7 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.0001041/0.119, allocations: 107.2 kB / 450.7 MB, free: 7.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002492/0.1193, allocations: 131.8 kB / 450.9 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1193, allocations: 0 / 450.9 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.354e-05/0.1194, allocations: 47.91 kB / 450.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.1197, allocations: 40.69 kB / 451 MB, free: 7.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/0.1202, allocations: 348.4 kB / 451.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.1204, allocations: 0.728 MB / 452 MB, free: 6.555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.1205, allocations: 15.44 kB / 452 MB, free: 6.539 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1205, allocations: 0 / 452 MB, free: 6.539 MB / 298.7 MB Notification: Performance of Templates: time 0.00366/0.1242, allocations: 1.6 MB / 453.6 MB, free: 4.938 MB / 298.7 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)