Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008691/0.0008692, allocations: 94.97 kB / 16.04 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08706/0.08706, allocations: 12.63 MB / 29.4 MB, free: 5.777 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0002074/0.0002075, allocations: 4 kB / 40.28 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.005683/0.005905, allocations: 2.828 MB / 43.11 MB, free: 5.957 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace): time 1.581/1.587, allocations: 277.7 MB / 320.8 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006985/1.587, allocations: 481.2 kB / 321.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.512e-05/1.587, allocations: 5.875 kB / 321.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/1.588, allocations: 15.91 kB / 321.3 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.053e-05/1.588, allocations: 27.83 kB / 321.3 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/1.588, allocations: 61.95 kB / 321.4 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/1.588, allocations: 123.5 kB / 321.5 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/1.588, allocations: 54.64 kB / 321.6 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.626e-05/1.588, allocations: 51.75 kB / 321.6 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/1.588, allocations: 75.67 kB / 321.7 MB, free: 9.656 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/1.588, allocations: 4 kB / 321.7 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/1.589, allocations: 4 kB / 321.7 MB, free: 9.648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.604e-05/1.589, allocations: 38.5 kB / 321.7 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.861e-05/1.589, allocations: 79.42 kB / 321.8 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/1.589, allocations: 99.66 kB / 321.9 MB, free: 9.434 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/1.589, allocations: 4 kB / 321.9 MB, free: 9.43 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/1.589, allocations: 0 / 321.9 MB, free: 9.43 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/1.589, allocations: 0 / 321.9 MB, free: 9.43 MB / 250.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.000599/1.589, allocations: 426.3 kB / 322.3 MB, free: 8.969 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.825e-05/1.589, allocations: 8.031 kB / 322.3 MB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.1e-05/1.589, allocations: 13.59 kB / 322.4 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/1.59, allocations: 220 kB / 322.6 MB, free: 8.695 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/1.59, allocations: 9.25 kB / 322.6 MB, free: 8.688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/1.59, allocations: 4.375 kB / 322.6 MB, free: 8.684 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/1.59, allocations: 216.3 kB / 322.8 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/1.59, allocations: 0 / 322.8 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/1.59, allocations: 5.031 kB / 322.8 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/1.59, allocations: 0 / 322.8 MB, free: 8.453 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/1.59, allocations: 78.95 kB / 322.9 MB, free: 8.379 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/1.591, allocations: 334.1 kB / 323.2 MB, free: 8 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/1.591, allocations: 138.9 kB / 323.3 MB, free: 7.848 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/1.591, allocations: 70.91 kB / 323.4 MB, free: 7.773 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/1.591, allocations: 15.5 kB / 323.4 MB, free: 7.762 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/1.591, allocations: 91.28 kB / 323.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/1.591, allocations: 0 / 323.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004352/1.592, allocations: 246.4 kB / 323.7 MB, free: 7.414 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/1.592, allocations: 86.53 kB / 323.8 MB, free: 7.312 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/1.592, allocations: 164.8 kB / 324 MB, free: 7.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/1.592, allocations: 29.69 kB / 324 MB, free: 7.109 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.754e-05/1.592, allocations: 104.6 kB / 324.1 MB, free: 7.004 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.152e-05/1.592, allocations: 34.33 kB / 324.2 MB, free: 6.973 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/1.592, allocations: 0 / 324.2 MB, free: 6.973 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.323e-05/1.592, allocations: 330.8 kB / 324.5 MB, free: 6.641 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.998e-05/1.592, allocations: 35.97 kB / 324.5 MB, free: 6.605 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/1.592, allocations: 111.9 kB / 324.6 MB, free: 6.469 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/1.593, allocations: 160.2 kB / 324.8 MB, free: 6.281 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/1.593, allocations: 4 kB / 324.8 MB, free: 6.277 MB / 250.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002555/1.593, allocations: 181.4 kB / 325 MB, free: 6.094 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/1.593, allocations: 8 kB / 325 MB, free: 6.086 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/1.593, allocations: 3.984 kB / 325 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/1.593, allocations: 4 kB / 325 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.499e-05/1.593, allocations: 16 kB / 325 MB, free: 6.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/1.593, allocations: 11.92 kB / 325 MB, free: 6.051 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.997e-05/1.593, allocations: 12 kB / 325 MB, free: 6.039 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/1.593, allocations: 4 kB / 325 MB, free: 6.035 MB / 250.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.0001475/1.593, allocations: 149.8 kB / 325.2 MB, free: 5.879 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-05/1.593, allocations: 89.42 kB / 325.3 MB, free: 5.785 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/1.593, allocations: 12.72 kB / 325.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/1.593, allocations: 0 / 325.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.593, allocations: 0 / 325.3 MB, free: 5.77 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/1.593, allocations: 3.984 kB / 325.3 MB, free: 5.766 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004613/1.594, allocations: 454.4 kB / 325.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/1.594, allocations: 0 / 325.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.531e-05/1.594, allocations: 19.92 kB / 325.7 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/1.594, allocations: 0 / 325.7 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/1.594, allocations: 4.703 kB / 325.7 MB, free: 5.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/1.594, allocations: 7.938 kB / 325.7 MB, free: 5.234 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.594, allocations: 0 / 325.7 MB, free: 5.234 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/1.594, allocations: 304.1 kB / 326 MB, free: 4.918 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/1.594, allocations: 88.95 kB / 326.1 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/1.594, allocations: 11.92 kB / 326.1 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/1.595, allocations: 15.94 kB / 326.2 MB, free: 4.785 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/1.595, allocations: 7.984 kB / 326.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/1.595, allocations: 4 kB / 326.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.632e-05/1.595, allocations: 125.3 kB / 326.3 MB, free: 4.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.595, allocations: 3.938 kB / 326.3 MB, free: 4.648 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002298/1.595, allocations: 24 kB / 326.3 MB, free: 4.625 MB / 250.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 9.92e-05/1.595, allocations: 107.2 kB / 326.4 MB, free: 4.512 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002398/1.595, allocations: 124.3 kB / 326.5 MB, free: 4.391 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.595, allocations: 0 / 326.5 MB, free: 4.391 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.344e-05/1.595, allocations: 51.91 kB / 326.6 MB, free: 4.34 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/1.596, allocations: 39.92 kB / 326.6 MB, free: 4.301 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004628/1.596, allocations: 311 kB / 326.9 MB, free: 3.961 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/1.596, allocations: 0.72 MB / 327.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.557e-05/1.597, allocations: 12.88 kB / 327.7 MB, free: 3.199 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/1.597, allocations: 15.44 kB / 327.7 MB, free: 3.188 MB / 250.7 MB Notification: Performance of SimCode: time 2.01e-07/1.597, allocations: 0 / 327.7 MB, free: 3.188 MB / 250.7 MB Notification: Performance of Templates: time 0.002899/1.599, allocations: 1.064 MB / 328.8 MB, free: 2.133 MB / 250.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)