Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_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.0009978/0.0009976, allocations: 175.4 kB / 16.77 MB, free: 5.047 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.781/1.781, 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.0008234/0.0008234, allocations: 82.42 kB / 271.3 MB, free: 8.25 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.0797/0.0797, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004199, allocations: 20 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 50.37 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001709/0.1109, allocations: 1.415 MB / 444.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008123/0.1118, allocations: 0.5116 MB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.111e-05/0.1119, allocations: 0 / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.112, allocations: 23.84 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.085e-05/0.1121, allocations: 23.84 kB / 444.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.1124, allocations: 55.81 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1126, allocations: 107.7 kB / 445.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1127, allocations: 36.89 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.1128, allocations: 55.69 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.113, allocations: 71.67 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.113, allocations: 4 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.881e-05/0.1131, allocations: 4 kB / 445.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.1132, allocations: 39.88 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.864e-05/0.1132, allocations: 65.5 kB / 445.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.1134, allocations: 80.02 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1134, allocations: 3.938 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1134, allocations: 0 / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1134, allocations: 4 kB / 445.4 MB, free: 13.62 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.0006626/0.1141, allocations: 423 kB / 445.9 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1141, allocations: 12.03 kB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.1142, allocations: 20.75 kB / 445.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.1143, allocations: 204.1 kB / 446.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.1144, allocations: 8.359 kB / 446.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.1144, allocations: 8.375 kB / 446.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003951/0.1148, allocations: 217.8 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1148, allocations: 0 / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1148, allocations: 4 kB / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1148, allocations: 0 / 446.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.115, allocations: 75.89 kB / 446.4 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004326/0.1154, allocations: 349.4 kB / 446.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.1156, allocations: 141.1 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.1158, allocations: 69.69 kB / 446.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.1158, allocations: 4 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.116, allocations: 95.45 kB / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.116, allocations: 0 / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004692/0.1165, allocations: 245.3 kB / 447.3 MB, free: 11.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.1166, allocations: 89.47 kB / 447.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.949e-05/0.1167, allocations: 158.1 kB / 447.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.1167, allocations: 29.7 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.663e-05/0.1167, allocations: 100.1 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.1168, allocations: 35.64 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.1168, allocations: 0 / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.423e-05/0.1168, allocations: 330.8 kB / 448 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.764e-05/0.1169, allocations: 35.98 kB / 448 MB, free: 10.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.682e-05/0.117, allocations: 111 kB / 448.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.1172, allocations: 161.3 kB / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1172, allocations: 0 / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002296/0.1175, allocations: 185.2 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1175, allocations: 4 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1175, allocations: 4 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1175, allocations: 4 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.1176, allocations: 23.92 kB / 448.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1177, allocations: 8.328 kB / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.554e-05/0.1177, allocations: 23.83 kB / 448.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.1177, allocations: 8 kB / 448.6 MB, free: 10.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.1179, allocations: 147.6 kB / 448.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.118, allocations: 77.75 kB / 448.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.118, allocations: 16.72 kB / 448.8 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.118, allocations: 4.109 kB / 448.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1181, allocations: 3.938 kB / 448.8 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1181, allocations: 4 kB / 448.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004089/0.1185, allocations: 466.1 kB / 449.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1185, allocations: 0 / 449.3 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.849e-05/0.1186, allocations: 8 kB / 449.3 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1186, allocations: 4 kB / 449.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1186, allocations: 3.984 kB / 449.3 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1186, allocations: 7.938 kB / 449.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1186, allocations: 0 / 449.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/0.1189, allocations: 292.2 kB / 449.6 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.1189, allocations: 88.92 kB / 449.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.249e-05/0.119, allocations: 12 kB / 449.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1191, allocations: 23.92 kB / 449.7 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.1191, allocations: 7.984 kB / 449.7 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.1192, allocations: 4 kB / 449.7 MB, free: 8.922 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.079e-05/0.1192, allocations: 119.2 kB / 449.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1192, allocations: 3.938 kB / 449.8 MB, free: 8.801 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000238/0.1195, allocations: 20 kB / 449.8 MB, free: 8.781 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 (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 9.401e-05/0.1196, allocations: 111.2 kB / 450 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.1198, allocations: 127.8 kB / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1198, allocations: 0 / 450.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.725e-05/0.1199, allocations: 47.92 kB / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.1203, allocations: 40.69 kB / 450.2 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004655/0.1208, allocations: 336.4 kB / 450.5 MB, free: 8.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.1209, allocations: 0.7199 MB / 451.2 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.121, allocations: 23.38 kB / 451.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.121, allocations: 0 / 451.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of Templates: time 0.002633/0.1236, allocations: 1.591 MB / 452.8 MB, free: 5.723 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)