Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00246/0.00246, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.666/2.666, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 43.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5779/0.5801, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.007279/0.5874, allocations: 1.874 MB / 402.1 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004306/0.5918, allocations: 1.126 MB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.5921, allocations: 4 kB / 403.2 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005725/0.5927, allocations: 63.66 kB / 403.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006152/0.5934, allocations: 91.59 kB / 403.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.595, allocations: 250.7 kB / 403.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005021/0.5955, allocations: 175.5 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.5958, allocations: 25.55 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.596, allocations: 71.69 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.5963, allocations: 75.69 kB / 404 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.037e-05/0.5964, allocations: 16 kB / 404 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.5967, allocations: 71.88 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.5968, allocations: 47.84 kB / 404.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.597, allocations: 83.47 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006913/0.5977, allocations: 236.8 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.5978, allocations: 0 / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.5978, allocations: 0 / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.5978, allocations: 0 / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001468/0.5993, allocations: 0.5234 MB / 404.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.033e-05/0.5994, allocations: 15.97 kB / 405 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.05e-05/0.5995, allocations: 42.73 kB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.5996, allocations: 28.64 kB / 405 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007968/0.6005, allocations: 287.6 kB / 405.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.6005, allocations: 4.375 kB / 405.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.6006, allocations: 7.938 kB / 405.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.6012, allocations: 155.6 kB / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.6012, allocations: 0 / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.6013, allocations: 4 kB / 405.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.6013, allocations: 4 kB / 405.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.6015, allocations: 35.91 kB / 405.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000977/0.6025, allocations: 386.4 kB / 405.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.603, allocations: 111.9 kB / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.6033, allocations: 50.5 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.6033, allocations: 7.984 kB / 406.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003139/0.6037, allocations: 75.33 kB / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 3.707e-06/0.6037, allocations: 0 / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007831/0.6045, allocations: 161.2 kB / 406.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.6047, allocations: 158.2 kB / 406.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.6054, allocations: 330.6 kB / 406.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.6054, allocations: 25.7 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.6056, allocations: 132 kB / 406.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.6057, allocations: 15.75 kB / 406.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.6058, allocations: 41.89 kB / 407 MB, free: 1.746 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.606, allocations: 330.8 kB / 407.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.6061, allocations: 23.98 kB / 407.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.6063, allocations: 86.78 kB / 407.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.6065, allocations: 88.41 kB / 407.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.6066, allocations: 4 kB / 407.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003612/0.6069, allocations: 117.4 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.607, allocations: 4.125 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.607, allocations: 11.98 kB / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.607, allocations: 0 / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.6072, allocations: 19.94 kB / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.6072, allocations: 0 / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.6073, allocations: 19.83 kB / 407.7 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.6074, allocations: 4 kB / 407.7 MB, free: 0.9961 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0002075/0.6076, allocations: 150.5 kB / 407.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.6077, allocations: 73.38 kB / 407.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.707e-05/0.6078, allocations: 25.7 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.6078, allocations: 0 / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6078, allocations: 0 / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.6078, allocations: 7.938 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003143/0.6082, allocations: 237.6 kB / 408.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.6082, allocations: 4 kB / 408.2 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.015e-05/0.6083, allocations: 11.98 kB / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.6083, allocations: 0 / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.6083, allocations: 8 kB / 408.2 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.6083, allocations: 3.938 kB / 408.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6083, allocations: 4.031 kB / 408.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.6087, allocations: 166.4 kB / 408.4 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.6089, allocations: 109 kB / 408.5 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.609, allocations: 11.94 kB / 408.5 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.778e-05/0.6091, allocations: 4 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/0.6092, allocations: 27.95 kB / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.6092, allocations: 4 kB / 408.5 MB, free: 56 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003719/0.6096, allocations: 241.9 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6096, allocations: 0 / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004575/0.6101, allocations: 39.98 kB / 408.8 MB, free: 15.78 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.002333/0.6124, allocations: 1.008 MB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004072/0.6128, allocations: 67.91 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.6129, allocations: 3.938 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.613, allocations: 28.11 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.6138, allocations: 72.03 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005362/0.6192, allocations: 2.208 MB / 412.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007216/0.6199, allocations: 0.7358 MB / 412.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.6202, allocations: 29.53 kB / 412.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.6204, allocations: 59.41 kB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of SimCode: time 1.323e-06/0.6204, allocations: 0 / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0974/0.7179, allocations: 5.271 MB / 418.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.813/10.53, allocations: 11.02 kB / 418.3 MB, free: 6.422 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches