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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 182.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 47.92 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2345, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003437/0.2379, allocations: 1.861 MB / 424.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.2399, allocations: 1.06 MB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.24, allocations: 7.938 kB / 425.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.2403, allocations: 67.66 kB / 425.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.2406, allocations: 95.59 kB / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007171/0.2413, allocations: 259.7 kB / 425.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002425/0.2416, allocations: 171.5 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.2417, allocations: 21.73 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.2418, allocations: 79.69 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.2419, allocations: 79.61 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.2419, allocations: 12 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.2421, allocations: 71.94 kB / 426.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.272e-05/0.2422, allocations: 47.84 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.2423, allocations: 59.53 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.2426, allocations: 240.7 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2426, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2426, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2426, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.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.0007396/0.2434, allocations: 474.5 kB / 427.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.2434, allocations: 12.03 kB / 427.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.678e-05/0.2435, allocations: 38.73 kB / 427.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.917e-05/0.2435, allocations: 28.8 kB / 427.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.244, allocations: 221.5 kB / 427.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.244, allocations: 12.38 kB / 427.4 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.244, allocations: 7.938 kB / 427.4 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.2444, allocations: 176.4 kB / 427.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2444, allocations: 3.938 kB / 427.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.2444, allocations: 4 kB / 427.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2444, allocations: 4 kB / 427.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.2445, allocations: 35.97 kB / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005715/0.2451, allocations: 353.3 kB / 428 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/0.2454, allocations: 111.9 kB / 428.1 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.462e-05/0.2455, allocations: 46.55 kB / 428.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.2455, allocations: 7.984 kB / 428.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.2457, allocations: 87.25 kB / 428.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.2457, allocations: 0 / 428.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000403/0.2461, allocations: 157.4 kB / 428.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.508e-05/0.2462, allocations: 132.5 kB / 428.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.2465, allocations: 333.8 kB / 428.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.2466, allocations: 25.7 kB / 428.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.2467, allocations: 120.1 kB / 429 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/0.2467, allocations: 19.89 kB / 429 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.2468, allocations: 33.92 kB / 429.1 MB, free: 7.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2469, allocations: 334.8 kB / 429.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.51e-05/0.247, allocations: 31.92 kB / 429.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.2471, allocations: 129.4 kB / 429.5 MB, free: 7.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.2473, allocations: 84.22 kB / 429.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2473, allocations: 0 / 429.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002478/0.2475, allocations: 133.7 kB / 429.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2476, allocations: 4 kB / 429.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2476, allocations: 4.062 kB / 429.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2476, allocations: 4 kB / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2477, allocations: 19.98 kB / 429.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.2477, allocations: 0 / 429.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.656e-05/0.2478, allocations: 15.83 kB / 429.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2478, allocations: 11.94 kB / 429.8 MB, free: 6.797 MB / 334.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.0001523/0.2479, allocations: 149.8 kB / 430 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.284e-05/0.248, allocations: 69.67 kB / 430 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.2483, allocations: 131.4 kB / 430.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2483, allocations: 4 kB / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.2483, allocations: 0 / 430.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2483, allocations: 3.938 kB / 430.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.2485, allocations: 192.7 kB / 430.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2485, allocations: 4 kB / 430.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.701e-05/0.2486, allocations: 11.98 kB / 430.4 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2486, allocations: 4 kB / 430.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.2486, allocations: 4.062 kB / 430.4 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2486, allocations: 0 / 430.4 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.2486, allocations: 4 kB / 430.4 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.2489, allocations: 174.5 kB / 430.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.874e-05/0.249, allocations: 39.88 kB / 430.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.2491, allocations: 15.86 kB / 430.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.387e-05/0.2491, allocations: 4 kB / 430.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.679e-05/0.2492, allocations: 11.92 kB / 430.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.2492, allocations: 4 kB / 430.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.2494, allocations: 245.2 kB / 430.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2494, allocations: 4 kB / 430.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000258/0.2497, allocations: 32 kB / 430.9 MB, free: 5.617 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.002119/0.2518, allocations: 1.057 MB / 432 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.252, allocations: 71.91 kB / 432 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.252, allocations: 0 / 432 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.864e-05/0.2521, allocations: 36.17 kB / 432.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.2525, allocations: 67.8 kB / 432.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.2551, allocations: 2.209 MB / 434.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.2553, allocations: 124.1 kB / 434.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.833e-05/0.2554, allocations: 45.59 kB / 434.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.2555, allocations: 59.42 kB / 434.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2555, allocations: 0 / 434.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03466/0.2902, allocations: 5.941 MB / 440.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.95, allocations: 14.5 kB / 440.5 MB, free: 12.1 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=3.98963e-05 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.261937824077904]