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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002832/0.002831, allocations: 187 kB / 7.844 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.2 MB / 213.4 MB, free: 13.88 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.001352/0.001352, allocations: 89.22 kB / 261.5 MB, free: 13.64 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.1063/0.1063, allocations: 12.58 MB / 322 MB, free: 1.004 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2661/0.3724, allocations: 56.49 MB / 378.5 MB, free: 75.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.4782, allocations: 50.38 MB / 428.9 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3267/0.8049, allocations: 78.52 MB / 0.4955 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.8052, allocations: 67.48 kB / 0.4956 GB, free: 11.96 MB / 330.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.01159/0.8168, allocations: 2.418 MB / 0.4979 GB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.8169, allocations: 7.844 kB / 0.4979 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/0.8169, allocations: 19.34 kB / 0.4979 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.8172, allocations: 208.7 kB / 0.4981 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.8172, allocations: 4.906 kB / 0.4981 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.946e-05/0.8173, allocations: 6.594 kB / 0.4981 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002297/0.8175, allocations: 65.02 kB / 0.4982 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004538/0.818, allocations: 184.9 kB / 0.4984 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.818, allocations: 0 / 0.4984 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.818, allocations: 3.062 kB / 0.4984 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.8181, allocations: 7.781 kB / 0.4984 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.8187, allocations: 313.6 kB / 0.4987 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002488/0.819, allocations: 123.8 kB / 0.4988 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.8191, allocations: 55.11 kB / 0.4989 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.8192, allocations: 9.062 kB / 0.4989 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.8193, allocations: 88.58 kB / 0.499 GB, free: 10.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.044e-06/0.8194, allocations: 0 / 0.499 GB, free: 10.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004141/0.8198, allocations: 143.9 kB / 0.4991 GB, free: 10.72 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.8199, allocations: 84.12 kB / 0.4992 GB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.82, allocations: 138.5 kB / 0.4993 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.8201, allocations: 33.55 kB / 0.4993 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.8201, allocations: 90.25 kB / 0.4994 GB, free: 10.42 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.371e-05/0.8202, allocations: 29.69 kB / 0.4995 GB, free: 10.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.8202, allocations: 0 / 0.4995 GB, free: 10.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.42e-05/0.8203, allocations: 329.2 kB / 0.4998 GB, free: 10.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.8204, allocations: 20.72 kB / 0.4998 GB, free: 10.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.8205, allocations: 99.8 kB / 0.4999 GB, free: 9.996 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.8206, allocations: 42.73 kB / 0.4999 GB, free: 9.992 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.8206, allocations: 0 / 0.4999 GB, free: 9.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003096/0.8209, allocations: 146.3 kB / 0.5001 GB, free: 9.941 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.821, allocations: 3.906 kB / 0.5001 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.821, allocations: 4.25 kB / 0.5001 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.821, allocations: 7.969 kB / 0.5001 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.8212, allocations: 27.16 kB / 0.5001 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.8213, allocations: 4 kB / 0.5001 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.8214, allocations: 13.06 kB / 0.5001 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.8214, allocations: 7.812 kB / 0.5001 GB, free: 9.926 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "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 () * 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.0001722/0.8216, allocations: 125.2 kB / 0.5002 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.8218, allocations: 77.17 kB / 0.5003 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.377e-05/0.8218, allocations: 16.23 kB / 0.5003 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.8219, allocations: 3.906 kB / 0.5003 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.896e-05/0.8219, allocations: 0 / 0.5003 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.8219, allocations: 1.734 kB / 0.5003 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.8225, allocations: 378.3 kB / 0.5007 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.8225, allocations: 112 / 0.5007 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.8227, allocations: 22.25 kB / 0.5007 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.034e-06/0.8227, allocations: 0 / 0.5007 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/0.8227, allocations: 6.344 kB / 0.5007 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.8227, allocations: 0 / 0.5007 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.8228, allocations: 3.906 kB / 0.5007 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003585/0.8231, allocations: 260.4 kB / 0.501 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003938/0.8235, allocations: 0.6273 MB / 0.5016 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.8236, allocations: 84.86 kB / 0.5017 GB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.097e-05/0.8237, allocations: 18.3 kB / 0.5017 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.8239, allocations: 9.406 kB / 0.5017 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.8239, allocations: 7.203 kB / 0.5017 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.824, allocations: 5.422 kB / 0.5017 GB, free: 8.672 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001015/0.8241, allocations: 122 kB / 0.5018 GB, free: 8.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001192/0.8253, allocations: 19.44 kB / 0.5019 GB, free: 8.59 MB / 330.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]) * 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.0001467/0.8255, allocations: 108.5 kB / 0.502 GB, free: 8.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.8257, allocations: 99.81 kB / 0.502 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8258, allocations: 4.062 kB / 0.5021 GB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.8259, allocations: 38.25 kB / 0.5021 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000394/0.8263, allocations: 37.39 kB / 0.5021 GB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006508/0.827, allocations: 200.7 kB / 0.5023 GB, free: 8.363 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.8273, allocations: 0.7473 MB / 0.503 GB, free: 7.652 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8273, allocations: 0 / 0.503 GB, free: 7.652 MB / 330.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)