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.002187/0.002191, allocations: 181.1 kB / 15.81 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.221/2.221, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0012/0.0012, allocations: 90.86 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1049/0.1049, allocations: 12.6 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006374/0.0006377, allocations: 17.48 kB / 392.1 MB, free: 54.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1065, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.002191/0.1087, allocations: 1.409 MB / 443.9 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1099, allocations: 0.5117 MB / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.1101, allocations: 3.938 kB / 444.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.1102, allocations: 19.91 kB / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.759e-05/0.1103, allocations: 27.89 kB / 444.4 MB, free: 8.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003767/0.1107, allocations: 51.86 kB / 444.5 MB, free: 8.766 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.1109, allocations: 83.83 kB / 444.6 MB, free: 8.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.111, allocations: 24.89 kB / 444.6 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1111, allocations: 47.77 kB / 444.7 MB, free: 8.613 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.1113, allocations: 75.7 kB / 444.7 MB, free: 8.539 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.1114, allocations: 8 kB / 444.7 MB, free: 8.531 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.66e-05/0.1114, allocations: 0 / 444.7 MB, free: 8.531 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.015e-05/0.1115, allocations: 39.89 kB / 444.8 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.1116, allocations: 41.64 kB / 444.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.1117, allocations: 76.64 kB / 444.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1117, allocations: 3.938 kB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1117, allocations: 0 / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1118, allocations: 0 / 444.9 MB, free: 8.367 MB / 282.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.0008741/0.1126, allocations: 422.9 kB / 445.3 MB, free: 7.906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.1127, allocations: 12.03 kB / 445.3 MB, free: 7.895 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.1128, allocations: 38.55 kB / 445.4 MB, free: 7.848 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.045e-05/0.1128, allocations: 15.81 kB / 445.4 MB, free: 7.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1131, allocations: 206.8 kB / 445.6 MB, free: 7.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.1131, allocations: 11.98 kB / 445.6 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.1132, allocations: 11.94 kB / 445.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.1137, allocations: 200.9 kB / 445.8 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1137, allocations: 0 / 445.8 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.1138, allocations: 0 / 445.8 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1138, allocations: 4 kB / 445.8 MB, free: 7.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.1141, allocations: 79.89 kB / 445.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.1147, allocations: 349.5 kB / 446.2 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/0.1151, allocations: 141.1 kB / 446.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/0.1151, allocations: 4 kB / 446.4 MB, free: 6.715 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002705/0.1154, allocations: 103.2 kB / 446.5 MB, free: 6.602 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.855e-06/0.1154, allocations: 0 / 446.5 MB, free: 6.602 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007589/0.1162, allocations: 237.3 kB / 446.7 MB, free: 6.363 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1163, allocations: 89.05 kB / 446.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.1165, allocations: 158.1 kB / 446.9 MB, free: 6.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1165, allocations: 33.7 kB / 447 MB, free: 6.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.481e-05/0.1166, allocations: 104.1 kB / 447.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.1166, allocations: 23.7 kB / 447.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.1166, allocations: 8 kB / 447.1 MB, free: 5.914 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.658e-05/0.1167, allocations: 326.8 kB / 447.4 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1168, allocations: 31.98 kB / 447.4 MB, free: 5.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.117, allocations: 117.3 kB / 447.6 MB, free: 5.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.1172, allocations: 51.97 kB / 447.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1172, allocations: 0 / 447.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004108/0.1176, allocations: 185.4 kB / 447.8 MB, free: 5.168 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1176, allocations: 6.656 kB / 447.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.1177, allocations: 4 kB / 447.8 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.1177, allocations: 4 kB / 447.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.1179, allocations: 23.92 kB / 447.8 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1179, allocations: 4 kB / 447.8 MB, free: 5.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.118, allocations: 23.8 kB / 447.9 MB, free: 5.105 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.1181, allocations: 8 kB / 447.9 MB, free: 5.098 MB / 282.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.0002197/0.1183, allocations: 150.5 kB / 448 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.1184, allocations: 73.58 kB / 448.1 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.278e-05/0.1185, allocations: 20.7 kB / 448.1 MB, free: 4.848 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.1185, allocations: 4.109 kB / 448.1 MB, free: 4.844 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1185, allocations: 3.938 kB / 448.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1186, allocations: 0 / 448.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007111/0.1193, allocations: 470.9 kB / 448.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1193, allocations: 0 / 448.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.1194, allocations: 15.97 kB / 448.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.1194, allocations: 4 kB / 448.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1195, allocations: 0 / 448.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.1195, allocations: 3.953 kB / 448.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1195, allocations: 0 / 448.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004898/0.12, allocations: 309.9 kB / 448.9 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.12, allocations: 88.92 kB / 449 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.1201, allocations: 11.94 kB / 449 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.1203, allocations: 15.98 kB / 449 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.1204, allocations: 8 kB / 449 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/0.1204, allocations: 7.984 kB / 449 MB, free: 3.824 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.674e-05/0.1205, allocations: 123.1 kB / 449.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1205, allocations: 0 / 449.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00038/0.1209, allocations: 24 kB / 449.2 MB, free: 3.68 MB / 282.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.000982/0.1219, allocations: 0.9805 MB / 450.2 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.1223, allocations: 124.5 kB / 450.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1224, allocations: 4.062 kB / 450.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.1225, allocations: 47.91 kB / 450.3 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.1229, allocations: 32.02 kB / 450.4 MB, free: 2.461 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.125, allocations: 2.375 MB / 452.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.1254, allocations: 0.7315 MB / 453.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.143e-05/0.1255, allocations: 8.891 kB / 453.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1257, allocations: 31.42 kB / 453.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of SimCode: time 1.242e-06/0.1257, allocations: 0 / 453.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.1527, allocations: 2.446 MB / 455.9 MB, free: 12.75 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003442/0.1531, allocations: 200 kB / 456.1 MB, free: 12.51 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/2.676, allocations: 3.938 kB / 456.1 MB, free: 12.5 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)