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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009509/0.0009511, allocations: 174.2 kB / 16.12 MB, free: 5.57 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.475/1.475, allocations: 205 MB / 221.9 MB, free: 9.152 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.0007904/0.0007905, allocations: 86.31 kB / 269.9 MB, free: 8.676 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.09357/0.09357, allocations: 12.58 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003978, allocations: 8 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1127, allocations: 49.99 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.002194/0.1149, allocations: 1.445 MB / 442.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009362/0.1159, allocations: 0.5425 MB / 443.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.116, allocations: 4 kB / 443.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.1162, allocations: 15.86 kB / 443.1 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.573e-05/0.1163, allocations: 31.83 kB / 443.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.1167, allocations: 47.95 kB / 443.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.1169, allocations: 123.6 kB / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.1171, allocations: 24.91 kB / 443.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.1172, allocations: 59.7 kB / 443.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.1174, allocations: 71.72 kB / 443.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.1175, allocations: 4 kB / 443.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.066e-05/0.1175, allocations: 4 kB / 443.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.229e-05/0.1176, allocations: 39.83 kB / 443.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.698e-05/0.1177, allocations: 43.73 kB / 443.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.1179, allocations: 107.8 kB / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.1179, allocations: 0 / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1179, allocations: 0 / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1179, allocations: 4 kB / 443.7 MB, free: 13.71 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.0008241/0.1187, allocations: 427 kB / 444.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/0.1188, allocations: 11.97 kB / 444.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.1189, allocations: 42.75 kB / 444.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.1189, allocations: 16.75 kB / 444.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.1192, allocations: 204.1 kB / 444.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1192, allocations: 4.375 kB / 444.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.1192, allocations: 12.31 kB / 444.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004659/0.1197, allocations: 220.9 kB / 444.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1197, allocations: 0 / 444.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.1197, allocations: 0 / 444.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1197, allocations: 4 kB / 444.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.1199, allocations: 79.88 kB / 444.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.1204, allocations: 341.5 kB / 445 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.1207, allocations: 145.1 kB / 445.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.1208, allocations: 77.67 kB / 445.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1208, allocations: 0 / 445.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.121, allocations: 91.36 kB / 445.3 MB, free: 11.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.121, allocations: 3.938 kB / 445.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000443/0.1215, allocations: 241.3 kB / 445.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.1215, allocations: 85.09 kB / 445.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.1216, allocations: 162.1 kB / 445.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1217, allocations: 33.7 kB / 445.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/0.1217, allocations: 100.3 kB / 446 MB, free: 11.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.1218, allocations: 27.64 kB / 446 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.1218, allocations: 29.7 kB / 446 MB, free: 11.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.232e-05/0.1219, allocations: 330.8 kB / 446.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.838e-05/0.1219, allocations: 31.98 kB / 446.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.225e-05/0.122, allocations: 108.3 kB / 446.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.1223, allocations: 173.2 kB / 446.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1223, allocations: 4 kB / 446.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000225/0.1225, allocations: 173.3 kB / 446.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1225, allocations: 8 kB / 446.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1225, allocations: 4.109 kB / 446.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1226, allocations: 3.938 kB / 446.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1227, allocations: 32.64 kB / 446.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.1227, allocations: 8 kB / 446.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.1228, allocations: 11.89 kB / 446.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.1228, allocations: 8 kB / 446.9 MB, free: 10.19 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 (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.0001586/0.123, allocations: 149.6 kB / 447 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.052e-05/0.123, allocations: 73.58 kB / 447.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.062e-05/0.1231, allocations: 16.72 kB / 447.1 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1231, allocations: 4 kB / 447.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1231, allocations: 4 kB / 447.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1231, allocations: 0 / 447.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.1236, allocations: 462.1 kB / 447.6 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1236, allocations: 0 / 447.6 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.1236, allocations: 12 kB / 447.6 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.1237, allocations: 4.234 kB / 447.6 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.1237, allocations: 7.984 kB / 447.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1237, allocations: 3.938 kB / 447.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1237, allocations: 0 / 447.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.124, allocations: 300.1 kB / 447.9 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.124, allocations: 85.02 kB / 448 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.1241, allocations: 8 kB / 448 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.1242, allocations: 19.92 kB / 448 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.1242, allocations: 7.984 kB / 448 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.1243, allocations: 4 kB / 448 MB, free: 8.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.265e-05/0.1243, allocations: 123.1 kB / 448.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1243, allocations: 0 / 448.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.1246, allocations: 24 kB / 448.2 MB, free: 8.797 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.0007267/0.1253, allocations: 0.9044 MB / 449.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002415/0.1256, allocations: 128.3 kB / 449.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1256, allocations: 0 / 449.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.95e-05/0.1257, allocations: 51.89 kB / 449.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.126, allocations: 49.58 kB / 449.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1277, allocations: 1.925 MB / 451.2 MB, free: 5.562 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.1279, allocations: 0.7199 MB / 451.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.133e-05/0.128, allocations: 8.875 kB / 451.9 MB, free: 4.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.1281, allocations: 43.42 kB / 452 MB, free: 4.766 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1281, allocations: 0 / 452 MB, free: 4.766 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.1401, allocations: 2.466 MB / 454.5 MB, free: 2.293 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/0.1402, allocations: 222.1 kB / 454.7 MB, free: 2.031 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/1.905, allocations: 0 / 454.7 MB, free: 2.031 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)