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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,fileNamePrefix="Modelica_Synchronous_cpp_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.001/0.001, allocations: 175.5 kB / 16.76 MB, free: 5.047 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.238/1.238, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007428/0.0007429, allocations: 88.03 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.059/0.059, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003705, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0738/0.07418, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 0.001586/0.07582, allocations: 1.411 MB / 443.9 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007683/0.07662, allocations: 0.5078 MB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/0.07672, allocations: 3.938 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.07685, allocations: 19.84 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.537e-05/0.07692, allocations: 31.84 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.07724, allocations: 55.81 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.07738, allocations: 107.6 kB / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.07749, allocations: 32.89 kB / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.0776, allocations: 51.75 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.07776, allocations: 71.73 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.0778, allocations: 4 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.132e-05/0.07782, allocations: 4 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.232e-05/0.07788, allocations: 39.88 kB / 444.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.584e-05/0.07795, allocations: 65.44 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.07806, allocations: 80.02 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.07807, allocations: 4 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.07808, allocations: 0 / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.07809, allocations: 4 kB / 445 MB, free: 14.04 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.0005707/0.07867, allocations: 423 kB / 445.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.07872, allocations: 8.031 kB / 445.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.144e-05/0.07877, allocations: 46.75 kB / 445.4 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.07881, allocations: 16.73 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.07898, allocations: 216 kB / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.07899, allocations: 384 / 445.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.07902, allocations: 12.38 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.07937, allocations: 209 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.07939, allocations: 0 / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.07941, allocations: 4 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.07942, allocations: 0 / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.07957, allocations: 83.86 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/0.07999, allocations: 349.4 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.08018, allocations: 137.1 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.08029, allocations: 69.67 kB / 446.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.08032, allocations: 4.156 kB / 446.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001459/0.08047, allocations: 99.34 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.08049, allocations: 0 / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004112/0.0809, allocations: 245.5 kB / 446.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/0.08098, allocations: 89.09 kB / 446.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.408e-05/0.08108, allocations: 162.1 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.0811, allocations: 29.7 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.323e-05/0.08114, allocations: 100.1 kB / 447.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.08117, allocations: 23.72 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.08118, allocations: 4 kB / 447.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.729e-05/0.08124, allocations: 334.8 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.742e-05/0.08131, allocations: 31.98 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.904e-05/0.08139, allocations: 106.2 kB / 447.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.08159, allocations: 169.3 kB / 447.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.0816, allocations: 0 / 447.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002638/0.08187, allocations: 181.2 kB / 448.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.08189, allocations: 4 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.0819, allocations: 4 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.08192, allocations: 4 kB / 448.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.782e-05/0.08202, allocations: 24.27 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.08204, allocations: 8 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.673e-05/0.08211, allocations: 15.84 kB / 448.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.08213, allocations: 8 kB / 448.1 MB, free: 10.56 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.0001296/0.08226, allocations: 150.4 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.08235, allocations: 73.69 kB / 448.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.08239, allocations: 24.88 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.0824, allocations: 4 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.08241, allocations: 7.984 kB / 448.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.08242, allocations: 0 / 448.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003948/0.08281, allocations: 454.2 kB / 448.8 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.08283, allocations: 0 / 448.8 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.049e-05/0.0829, allocations: 15.92 kB / 448.8 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.08291, allocations: 4 kB / 448.8 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.08293, allocations: 4 kB / 448.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.08294, allocations: 7.938 kB / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.08295, allocations: 0 / 448.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.08322, allocations: 296.2 kB / 449.1 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.08326, allocations: 89.11 kB / 449.2 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.08329, allocations: 11.98 kB / 449.2 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.08341, allocations: 23.86 kB / 449.3 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.08345, allocations: 7.938 kB / 449.3 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.08347, allocations: 7.984 kB / 449.3 MB, free: 9.293 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.263e-05/0.08353, allocations: 123.1 kB / 449.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08354, allocations: 0 / 449.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002845/0.08383, allocations: 24 kB / 449.4 MB, free: 9.148 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.0005611/0.08439, allocations: 0.9005 MB / 450.3 MB, free: 8.215 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.08462, allocations: 132.1 kB / 450.5 MB, free: 8.086 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.08464, allocations: 0 / 450.5 MB, free: 8.086 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.417e-05/0.08472, allocations: 43.97 kB / 450.5 MB, free: 8.043 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.08507, allocations: 47.89 kB / 450.5 MB, free: 7.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.08618, allocations: 0.922 MB / 451.5 MB, free: 6.988 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.08632, allocations: 0.7238 MB / 452.2 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.08638, allocations: 35.42 kB / 452.2 MB, free: 6.203 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.08639, allocations: 4 kB / 452.2 MB, free: 6.199 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.38/2.466, allocations: 1.982 MB / 454.2 MB, free: 4.215 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestStateSpace.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)