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.0009365/0.0009366, allocations: 170.4 kB / 15.81 MB, free: 6.285 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.667/1.667, allocations: 205.4 MB / 222 MB, free: 13.75 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.001044/0.001045, allocations: 94.22 kB / 270.3 MB, free: 13.28 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.07653/0.07653, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004364, allocations: 14.94 kB / 392.1 MB, free: 54.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1024, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001714/0.1041, allocations: 1.408 MB / 443.9 MB, free: 9.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000731/0.1049, allocations: 0.5311 MB / 444.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.668e-05/0.105, allocations: 3.938 kB / 444.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.1051, allocations: 15.92 kB / 444.5 MB, free: 8.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-05/0.1052, allocations: 27.78 kB / 444.5 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002944/0.1055, allocations: 47.94 kB / 444.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001316/0.1056, allocations: 115.6 kB / 444.6 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.1057, allocations: 24.89 kB / 444.7 MB, free: 8.652 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.485e-05/0.1058, allocations: 51.77 kB / 444.7 MB, free: 8.602 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.106, allocations: 75.72 kB / 444.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.106, allocations: 4 kB / 444.8 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.095e-05/0.106, allocations: 0 / 444.8 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.267e-05/0.1061, allocations: 35.89 kB / 444.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.598e-05/0.1062, allocations: 41.64 kB / 444.9 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.1063, allocations: 80.62 kB / 444.9 MB, free: 8.363 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1063, allocations: 4 kB / 445 MB, free: 8.359 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1063, allocations: 3.938 kB / 445 MB, free: 8.355 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1063, allocations: 0 / 445 MB, free: 8.355 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.0006139/0.1069, allocations: 422.9 kB / 445.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.107, allocations: 12.03 kB / 445.4 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.058e-05/0.107, allocations: 38.55 kB / 445.4 MB, free: 7.836 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.1071, allocations: 23.75 kB / 445.4 MB, free: 7.812 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.1073, allocations: 202.8 kB / 445.6 MB, free: 7.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.1073, allocations: 7.984 kB / 445.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.1073, allocations: 12 kB / 445.7 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004139/0.1078, allocations: 204.9 kB / 445.9 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1078, allocations: 0 / 445.9 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1078, allocations: 0 / 445.9 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1078, allocations: 4 kB / 445.9 MB, free: 7.332 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.108, allocations: 75.94 kB / 445.9 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004735/0.1085, allocations: 349.5 kB / 446.3 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.1087, allocations: 145.1 kB / 446.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.1088, allocations: 61.69 kB / 446.5 MB, free: 6.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1088, allocations: 8 kB / 446.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.109, allocations: 91.36 kB / 446.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.512e-06/0.109, allocations: 0 / 446.6 MB, free: 6.527 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004299/0.1095, allocations: 249.3 kB / 446.8 MB, free: 6.277 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.1095, allocations: 85.05 kB / 446.9 MB, free: 6.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.1096, allocations: 158.1 kB / 447.1 MB, free: 6.008 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1097, allocations: 33.7 kB / 447.1 MB, free: 5.969 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/0.1097, allocations: 100.1 kB / 447.2 MB, free: 5.867 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.1097, allocations: 31.84 kB / 447.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/0.1098, allocations: 8 kB / 447.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.1098, allocations: 322.9 kB / 447.5 MB, free: 5.504 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.962e-05/0.1099, allocations: 36.3 kB / 447.6 MB, free: 5.469 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.883e-05/0.11, allocations: 112.3 kB / 447.7 MB, free: 5.328 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.527e-05/0.1101, allocations: 51.98 kB / 447.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1101, allocations: 0 / 447.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002496/0.1104, allocations: 185.5 kB / 447.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.1104, allocations: 8.031 kB / 447.9 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1104, allocations: 4 kB / 447.9 MB, free: 5.078 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1104, allocations: 4 kB / 447.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1105, allocations: 23.92 kB / 448 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1105, allocations: 7.953 kB / 448 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.1106, allocations: 15.84 kB / 448 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1106, allocations: 11.98 kB / 448 MB, free: 5.016 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.0001471/0.1108, allocations: 149.3 kB / 448.1 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.008e-05/0.1109, allocations: 69.59 kB / 448.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.961e-05/0.1109, allocations: 20.7 kB / 448.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.1109, allocations: 4.234 kB / 448.2 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1109, allocations: 0 / 448.2 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.111, allocations: 7.938 kB / 448.2 MB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004133/0.1114, allocations: 454.3 kB / 448.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1114, allocations: 0 / 448.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-05/0.1115, allocations: 15.92 kB / 448.7 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1115, allocations: 4 kB / 448.7 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1115, allocations: 7.984 kB / 448.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.1115, allocations: 3.953 kB / 448.7 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1115, allocations: 4 kB / 448.7 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.1118, allocations: 284.2 kB / 449 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.1118, allocations: 92.91 kB / 449.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.1119, allocations: 11.94 kB / 449.1 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.112, allocations: 11.98 kB / 449.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.112, allocations: 15.94 kB / 449.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.1121, allocations: 4 kB / 449.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.238e-05/0.1121, allocations: 123.1 kB / 449.3 MB, free: 3.652 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.1121, allocations: 0 / 449.3 MB, free: 3.652 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002346/0.1124, allocations: 27.94 kB / 449.3 MB, free: 3.625 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.0006721/0.1131, allocations: 0.9062 MB / 450.2 MB, free: 2.688 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002369/0.1133, allocations: 123.8 kB / 450.3 MB, free: 2.566 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1133, allocations: 0 / 450.3 MB, free: 2.566 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.978e-05/0.1134, allocations: 48.72 kB / 450.4 MB, free: 2.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.1138, allocations: 56.02 kB / 450.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.115, allocations: 0.8851 MB / 451.3 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.1152, allocations: 0.72 MB / 452 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.54e-05/0.1153, allocations: 12.88 kB / 452 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.29e-05/0.1153, allocations: 35.42 kB / 452.1 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1153, allocations: 0 / 452.1 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01347/0.1288, allocations: 2.461 MB / 454.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.1291, allocations: 198 kB / 454.7 MB, free: 14.01 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/1.709, allocations: 0 / 454.7 MB, free: 14.01 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)