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.001453/0.001452, allocations: 184.3 kB / 16.45 MB, free: 5.656 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.614/1.614, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0008225/0.0008227, allocations: 98.08 kB / 270.9 MB, free: 8.336 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.07279/0.07279, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004057, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1153, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.002009/0.1174, allocations: 1.41 MB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009196/0.1183, allocations: 0.5195 MB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.579e-05/0.1184, allocations: 7.938 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1186, allocations: 19.91 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.179e-05/0.1187, allocations: 23.83 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.119, allocations: 51.89 kB / 444.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.1192, allocations: 111.6 kB / 444.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1193, allocations: 28.89 kB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1194, allocations: 51.77 kB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.1196, allocations: 71.72 kB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.1196, allocations: 4 kB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.405e-05/0.1196, allocations: 8 kB / 444.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.1197, allocations: 31.89 kB / 444.7 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.559e-05/0.1198, allocations: 41.64 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.1199, allocations: 72.14 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1199, allocations: 7.875 kB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1199, allocations: 4 kB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1199, allocations: 0 / 444.8 MB, free: 13.97 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.000766/0.1207, allocations: 430.8 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1208, allocations: 8.031 kB / 445.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.799e-05/0.1208, allocations: 15.81 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.1211, allocations: 210.8 kB / 445.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.1211, allocations: 7.984 kB / 445.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.1211, allocations: 12 kB / 445.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.1216, allocations: 200.9 kB / 445.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1217, allocations: 0 / 445.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.1217, allocations: 3.938 kB / 445.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1217, allocations: 7.984 kB / 445.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.122, allocations: 75.95 kB / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005937/0.1226, allocations: 345.5 kB / 446.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.1229, allocations: 141.1 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1231, allocations: 65.69 kB / 446.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1231, allocations: 0 / 446.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.1234, allocations: 103.3 kB / 446.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.024e-06/0.1234, allocations: 0 / 446.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006588/0.1241, allocations: 241.3 kB / 446.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.1241, allocations: 85.05 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1243, allocations: 166.1 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1243, allocations: 33.7 kB / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.1244, allocations: 104.1 kB / 447 MB, free: 11.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.1244, allocations: 23.86 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-06/0.1244, allocations: 4 kB / 447.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.668e-05/0.1245, allocations: 326.8 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1246, allocations: 32.36 kB / 447.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1248, allocations: 113.4 kB / 447.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.125, allocations: 55.92 kB / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.125, allocations: 0 / 447.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003883/0.1254, allocations: 177.3 kB / 447.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1254, allocations: 10.97 kB / 447.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1254, allocations: 4 kB / 447.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1255, allocations: 4 kB / 447.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.1256, allocations: 27.92 kB / 447.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.1256, allocations: 7.938 kB / 447.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.1258, allocations: 16.08 kB / 447.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1258, allocations: 19.98 kB / 447.8 MB, free: 10.67 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.0001651/0.126, allocations: 134.5 kB / 448 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.1261, allocations: 77.7 kB / 448 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.1262, allocations: 20.75 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1262, allocations: 8.094 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1262, allocations: 3.938 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1262, allocations: 0 / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005645/0.1268, allocations: 458.2 kB / 448.5 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1268, allocations: 4 kB / 448.5 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.635e-05/0.1269, allocations: 15.98 kB / 448.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1269, allocations: 0 / 448.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.1269, allocations: 7.984 kB / 448.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.127, allocations: 3.953 kB / 448.6 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.127, allocations: 3.938 kB / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004105/0.1274, allocations: 288.2 kB / 448.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.1274, allocations: 92.91 kB / 448.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.445e-05/0.1275, allocations: 8 kB / 448.9 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.1277, allocations: 15.98 kB / 449 MB, free: 9.438 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.1278, allocations: 11.95 kB / 449 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.1278, allocations: 7.984 kB / 449 MB, free: 9.418 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.697e-05/0.1279, allocations: 119.1 kB / 449.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1279, allocations: 0 / 449.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004295/0.1283, allocations: 20 kB / 449.1 MB, free: 9.281 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 0.0001072/0.1285, allocations: 111.2 kB / 449.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003494/0.1288, allocations: 127.8 kB / 449.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1289, allocations: 0 / 449.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.129, allocations: 51.95 kB / 449.4 MB, free: 8.984 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.1295, allocations: 36 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006095/0.1301, allocations: 329.1 kB / 449.7 MB, free: 8.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.1303, allocations: 0.7278 MB / 450.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.1304, allocations: 19.38 kB / 450.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1304, allocations: 0 / 450.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of Templates: time 0.003621/0.134, allocations: 1.61 MB / 452.1 MB, free: 6.207 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)