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.001009/0.001009, allocations: 172.4 kB / 16.14 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.566/1.566, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0008155/0.0008156, allocations: 86.38 kB / 270.7 MB, free: 8.254 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.09805/0.09805, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004409/0.000441, allocations: 11.98 kB / 392.8 MB, free: 65.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 50.37 MB / 443.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.002187/0.1215, allocations: 1.441 MB / 444.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1225, allocations: 0.5231 MB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.1228, allocations: 4 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.123, allocations: 23.84 kB / 445.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.1231, allocations: 23.84 kB / 445.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.1236, allocations: 55.88 kB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.1239, allocations: 123.6 kB / 445.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.1241, allocations: 32.83 kB / 445.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.1243, allocations: 47.78 kB / 445.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1245, allocations: 83.64 kB / 445.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.1245, allocations: 4 kB / 445.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.433e-05/0.1246, allocations: 4 kB / 445.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.574e-05/0.1247, allocations: 39.83 kB / 445.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.665e-05/0.1248, allocations: 69.42 kB / 445.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.1249, allocations: 103.8 kB / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1249, allocations: 0 / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.125, allocations: 0 / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.125, allocations: 4 kB / 445.7 MB, free: 12.75 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.000765/0.1257, allocations: 423 kB / 446.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.1258, allocations: 8.031 kB / 446.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.182e-05/0.1259, allocations: 46.73 kB / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.589e-05/0.1259, allocations: 16.75 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.1262, allocations: 208.1 kB / 446.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1262, allocations: 16.3 kB / 446.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/0.1263, allocations: 12.36 kB / 446.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.1267, allocations: 213 kB / 446.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.1267, allocations: 0 / 446.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.1268, allocations: 3.984 kB / 446.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.1268, allocations: 4 kB / 446.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.127, allocations: 75.89 kB / 446.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.1275, allocations: 345.5 kB / 447 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.1277, allocations: 141.1 kB / 447.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.1278, allocations: 65.69 kB / 447.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.1279, allocations: 4 kB / 447.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.1281, allocations: 103.4 kB / 447.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.1281, allocations: 0 / 447.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000481/0.1286, allocations: 241.6 kB / 447.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.1287, allocations: 85.2 kB / 447.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.1288, allocations: 166 kB / 447.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1288, allocations: 33.7 kB / 447.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/0.1288, allocations: 104.1 kB / 448 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.1289, allocations: 27.64 kB / 448 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.1289, allocations: 4 kB / 448 MB, free: 10.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.721e-05/0.129, allocations: 330.8 kB / 448.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.253e-05/0.129, allocations: 31.98 kB / 448.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.068e-05/0.1291, allocations: 105.4 kB / 448.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.1294, allocations: 173.2 kB / 448.6 MB, free: 9.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1294, allocations: 3.938 kB / 448.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002786/0.1297, allocations: 173.4 kB / 448.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1297, allocations: 8 kB / 448.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1297, allocations: 112 / 448.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1297, allocations: 7.938 kB / 448.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.1299, allocations: 24.27 kB / 448.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1299, allocations: 8 kB / 448.8 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.483e-05/0.13, allocations: 15.91 kB / 448.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.13, allocations: 7.984 kB / 448.9 MB, free: 9.25 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.0001618/0.1301, allocations: 149.9 kB / 449 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-05/0.1302, allocations: 73.59 kB / 449.1 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.1303, allocations: 20.7 kB / 449.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1303, allocations: 0 / 449.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.1303, allocations: 7.938 kB / 449.1 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1303, allocations: 4 kB / 449.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004722/0.1308, allocations: 450.2 kB / 449.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1308, allocations: 0 / 449.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.764e-05/0.1309, allocations: 19.98 kB / 449.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1309, allocations: 0 / 449.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1309, allocations: 11.98 kB / 449.6 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.1309, allocations: 3.938 kB / 449.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.131, allocations: 0 / 449.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.1313, allocations: 292.1 kB / 449.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.273e-05/0.1313, allocations: 89 kB / 450 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.154e-05/0.1313, allocations: 8 kB / 450 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.1315, allocations: 24.02 kB / 450 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.1315, allocations: 11.92 kB / 450 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1315, allocations: 4 kB / 450 MB, free: 7.992 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.898e-05/0.1316, allocations: 123.1 kB / 450.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1316, allocations: 0 / 450.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002611/0.1319, allocations: 24 kB / 450.2 MB, free: 7.848 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.0006688/0.1326, allocations: 0.9044 MB / 451.1 MB, free: 6.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000242/0.1328, allocations: 132.1 kB / 451.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1328, allocations: 0 / 451.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.372e-05/0.1329, allocations: 47.91 kB / 451.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1333, allocations: 47.33 kB / 451.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.135, allocations: 1.933 MB / 453.2 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001632/0.1352, allocations: 0.716 MB / 453.9 MB, free: 3.871 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.725e-05/0.1353, allocations: 13.06 kB / 453.9 MB, free: 3.855 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.418e-05/0.1353, allocations: 43.42 kB / 454 MB, free: 3.812 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.1354, allocations: 0 / 454 MB, free: 3.812 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01336/0.1487, allocations: 2.466 MB / 456.5 MB, free: 1.34 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.149, allocations: 222.1 kB / 456.7 MB, free: 1.078 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/1.844, allocations: 0 / 456.7 MB, free: 1.078 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)