Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",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.001181/0.001181, allocations: 103.8 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.001198/0.001198, 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.385/1.385, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.001181, allocations: 46.92 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1133, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003788/0.1171, allocations: 1.48 MB / 351.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004402/0.1176, allocations: 141 kB / 351.8 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.1178, allocations: 7.938 kB / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.288e-05/0.1178, allocations: 4 kB / 351.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.118, allocations: 11.92 kB / 351.8 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1183, allocations: 36.72 kB / 351.8 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.904e-05/0.1184, allocations: 27.92 kB / 351.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.1185, allocations: 15.98 kB / 351.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.426e-05/0.1186, allocations: 7.938 kB / 351.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.818e-05/0.1186, allocations: 19.86 kB / 351.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.1186, allocations: 0 / 351.9 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.504e-05/0.1187, allocations: 4 kB / 351.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.462e-05/0.1187, allocations: 15.98 kB / 351.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.1188, allocations: 19.81 kB / 352 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.1189, allocations: 39.83 kB / 352 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1189, allocations: 0 / 352 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1189, allocations: 0 / 352 MB, free: 2.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1189, allocations: 0 / 352 MB, free: 2.48 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005085/0.1194, allocations: 363.5 kB / 352.3 MB, free: 2.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1195, allocations: 12.02 kB / 352.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.409e-05/0.1195, allocations: 30.75 kB / 352.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.1196, allocations: 12.84 kB / 352.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001988/0.1198, allocations: 188.2 kB / 352.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.1198, allocations: 4.375 kB / 352.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-06/0.1198, allocations: 384 / 352.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.12, allocations: 85.67 kB / 352.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1201, allocations: 7.875 kB / 352.7 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.1201, allocations: 8 kB / 352.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1201, allocations: 4 kB / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.894e-05/0.1202, allocations: 11.98 kB / 352.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.1205, allocations: 253.8 kB / 353 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.565e-05/0.1206, allocations: 49.08 kB / 353 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.041e-05/0.1207, allocations: 25.77 kB / 353 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.1207, allocations: 0 / 353 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1207, allocations: 30.56 kB / 353.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 3.416e-06/0.1207, allocations: 0 / 353.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002417/0.121, allocations: 73.59 kB / 353.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.1211, allocations: 89.03 kB / 353.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.1212, allocations: 133.6 kB / 353.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.1212, allocations: 25.7 kB / 353.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.969e-05/0.1213, allocations: 88.14 kB / 353.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.03e-05/0.1213, allocations: 3.906 kB / 353.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.1213, allocations: 17.72 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1214, allocations: 318.9 kB / 353.8 MB, free: 432 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.1215, allocations: 4 kB / 353.8 MB, free: 428 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.687e-05/0.1215, allocations: 21.7 kB / 353.8 MB, free: 400 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.7e-05/0.1216, allocations: 25.7 kB / 353.8 MB, free: 368 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1216, allocations: 3.938 kB / 353.8 MB, free: 364 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001051/0.1217, allocations: 57.69 kB / 353.9 MB, free: 300 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1217, allocations: 4 kB / 353.9 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1218, allocations: 3.984 kB / 353.9 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.1218, allocations: 0 / 353.9 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.561e-05/0.1218, allocations: 8 kB / 353.9 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1219, allocations: 0 / 353.9 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/0.1219, allocations: 3.984 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-06/0.1219, allocations: 4 kB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.203e-05/0.122, allocations: 125.8 kB / 354 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.1221, allocations: 33.61 kB / 354.1 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.1221, allocations: 15.86 kB / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1221, allocations: 0 / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.1221, allocations: 0 / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.1221, allocations: 4 kB / 354.1 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.1223, allocations: 169.6 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1223, allocations: 0 / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.1224, allocations: 4 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1224, allocations: 4.031 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.1224, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.1224, allocations: 4 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1224, allocations: 0 / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001499/0.1226, allocations: 160.2 kB / 354.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.1226, allocations: 96.89 kB / 354.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.1226, allocations: 8.016 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.817e-05/0.1227, allocations: 8 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/0.1227, allocations: 0 / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.1228, allocations: 0 / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.007e-05/0.1228, allocations: 103.3 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1228, allocations: 0 / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1231, allocations: 4 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004904/0.1236, allocations: 0.7014 MB / 355.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.1237, allocations: 19.98 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1237, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.831e-05/0.1238, allocations: 8.141 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1242, allocations: 23.94 kB / 355.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.1257, allocations: 1.262 MB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.126, allocations: 0.6885 MB / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.246e-05/0.1261, allocations: 0 / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.1261, allocations: 15.38 kB / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1261, allocations: 0 / 357.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.1562, allocations: 1.357 MB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.685, allocations: 6.875 kB / 358.7 MB, free: 11.33 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches