Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",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.001301/0.001301, allocations: 110 kB / 16.92 MB, free: 6.145 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.001329/0.001329, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 42.73 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08929/0.09035, allocations: 49.46 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.003949/0.09434, allocations: 1.86 MB / 352 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.09635, allocations: 1.149 MB / 353.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.09655, allocations: 7.938 kB / 353.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.09694, allocations: 59.67 kB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003185/0.09727, allocations: 87.59 kB / 353.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.09819, allocations: 262.9 kB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.09845, allocations: 175.5 kB / 353.8 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.09857, allocations: 29.48 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.0987, allocations: 79.69 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.09883, allocations: 79.62 kB / 353.9 MB, free: 500 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.09886, allocations: 8 kB / 354 MB, free: 492 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.09901, allocations: 59.95 kB / 354 MB, free: 432 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.631e-05/0.09911, allocations: 47.84 kB / 354.1 MB, free: 384 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.558e-05/0.0992, allocations: 75.48 kB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.09952, allocations: 239.5 kB / 354.4 MB, free: 68 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.09954, allocations: 3.938 kB / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09954, allocations: 0 / 354.4 MB, free: 64 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.09956, allocations: 0 / 354.4 MB, free: 64 kB / 286.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.0007847/0.1003, allocations: 0.5234 MB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.1004, allocations: 16.02 kB / 354.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.756e-05/0.1005, allocations: 34.75 kB / 354.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.521e-05/0.1005, allocations: 28.66 kB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003694/0.1009, allocations: 287.5 kB / 355.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.1009, allocations: 4.375 kB / 355.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.101, allocations: 11.94 kB / 355.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.1013, allocations: 159.6 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1013, allocations: 0 / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1014, allocations: 4 kB / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.1014, allocations: 0 / 355.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.1015, allocations: 35.92 kB / 355.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.102, allocations: 386.3 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.1023, allocations: 119.9 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.039e-05/0.1024, allocations: 50.5 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1024, allocations: 4 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.1027, allocations: 79.38 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.1027, allocations: 0 / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003981/0.1031, allocations: 157.2 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.1032, allocations: 154.2 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.1035, allocations: 330.6 kB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.1036, allocations: 29.7 kB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/0.1037, allocations: 128.3 kB / 356.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.1037, allocations: 19.8 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.1038, allocations: 25.72 kB / 356.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1039, allocations: 334.8 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.8e-05/0.104, allocations: 23.98 kB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.1041, allocations: 86.83 kB / 357.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.1043, allocations: 92.09 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1043, allocations: 4 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002554/0.1046, allocations: 129.6 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1046, allocations: 11.94 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1046, allocations: 0 / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1047, allocations: 0 / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1048, allocations: 23.92 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1048, allocations: 0 / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.672e-05/0.1049, allocations: 7.938 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1049, allocations: 4 kB / 357.6 MB, free: 12.46 MB / 302.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,superSample1.y,superSample1.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.0001626/0.1051, allocations: 161.8 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.785e-05/0.1052, allocations: 69.42 kB / 357.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1052, allocations: 29.7 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1053, allocations: 0 / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1053, allocations: 4 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.1053, allocations: 7.922 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.1055, allocations: 233.7 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1055, allocations: 3.984 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.1056, allocations: 8 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1056, allocations: 4 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1056, allocations: 8.047 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1057, allocations: 3.938 kB / 358.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1057, allocations: 4 kB / 358.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.106, allocations: 166.4 kB / 358.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1061, allocations: 112.8 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.1061, allocations: 4 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.1062, allocations: 11.98 kB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.1063, allocations: 11.94 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.1063, allocations: 7.984 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002528/0.1066, allocations: 237.9 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1066, allocations: 0 / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.1069, allocations: 32 kB / 358.7 MB, free: 11.25 MB / 302.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,superSample1.y,sample1.y,superSample1.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.001476/0.1084, allocations: 1.022 MB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002434/0.1086, allocations: 79.84 kB / 359.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1086, allocations: 0 / 359.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.147e-05/0.1087, allocations: 32.23 kB / 359.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.1091, allocations: 72.53 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.1116, allocations: 2.184 MB / 362.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002907/0.1119, allocations: 0.7397 MB / 362.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.989e-05/0.112, allocations: 25.48 kB / 362.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.83e-05/0.1121, allocations: 59.41 kB / 362.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1121, allocations: 0 / 362.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.1386, allocations: 5.124 MB / 368 MB, free: 2.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.346, allocations: 0 / 368 MB, free: 2.031 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches