Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 216.9 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2908, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003752/0.2946, allocations: 1.526 MB / 432.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005072/0.2951, allocations: 139.5 kB / 432.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.2951, allocations: 0 / 432.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.745e-05/0.2952, allocations: 3.938 kB / 432.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2953, allocations: 11.92 kB / 432.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.2956, allocations: 35.91 kB / 432.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.2957, allocations: 27.86 kB / 432.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2958, allocations: 11.98 kB / 432.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.389e-05/0.2959, allocations: 4 kB / 432.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.77e-05/0.2959, allocations: 23.86 kB / 432.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.296, allocations: 4 kB / 432.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.04e-05/0.296, allocations: 0 / 432.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.296, allocations: 11.98 kB / 432.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.2961, allocations: 19.81 kB / 432.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.2962, allocations: 52.11 kB / 433 MB, free: 4.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2962, allocations: 0 / 433 MB, free: 4.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2962, allocations: 0 / 433 MB, free: 4.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2962, allocations: 0 / 433 MB, free: 4.996 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005139/0.2967, allocations: 282.1 kB / 433.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2968, allocations: 16.03 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.247e-05/0.2968, allocations: 30.75 kB / 433.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.2968, allocations: 8.891 kB / 433.3 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.2971, allocations: 128.2 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.2972, allocations: 8.312 kB / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.2972, allocations: 384 / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.2975, allocations: 97.61 kB / 433.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.2975, allocations: 11.92 kB / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.2975, allocations: 0 / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.2975, allocations: 0 / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.119e-05/0.2976, allocations: 19.86 kB / 433.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.298, allocations: 232.9 kB / 433.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.2981, allocations: 41.16 kB / 433.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.576e-05/0.2982, allocations: 25.7 kB / 433.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.2982, allocations: 0 / 433.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.2982, allocations: 34.56 kB / 433.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2982, allocations: 0 / 433.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003125/0.2985, allocations: 61.61 kB / 434 MB, free: 3.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.2986, allocations: 81.11 kB / 434.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.2988, allocations: 134.1 kB / 434.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.2988, allocations: 25.7 kB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.101e-05/0.2989, allocations: 88.39 kB / 434.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.023e-05/0.2989, allocations: 4 kB / 434.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.2989, allocations: 21.7 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.2991, allocations: 310.8 kB / 434.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.877e-05/0.2992, allocations: 7.938 kB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.88e-05/0.2992, allocations: 25.7 kB / 434.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.567e-05/0.2993, allocations: 29.77 kB / 434.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.2993, allocations: 3.938 kB / 434.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001575/0.2995, allocations: 57.58 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.2995, allocations: 4 kB / 434.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2995, allocations: 0 / 434.8 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.2995, allocations: 4 kB / 434.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.651e-05/0.2996, allocations: 4 kB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2996, allocations: 7.969 kB / 434.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.671e-05/0.2997, allocations: 4.062 kB / 434.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.2997, allocations: 4 kB / 434.8 MB, free: 2.977 MB / 334.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 0.0001178/0.2998, allocations: 117.8 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.2999, allocations: 57.5 kB / 434.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.2999, allocations: 7.766 kB / 435 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2999, allocations: 0 / 435 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2999, allocations: 4 kB / 435 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2999, allocations: 0 / 435 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002467/0.3002, allocations: 148.6 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3002, allocations: 0 / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.506e-05/0.3002, allocations: 4 kB / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3002, allocations: 0 / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3002, allocations: 4 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3002, allocations: 0 / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3002, allocations: 0 / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.3004, allocations: 160.3 kB / 435.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.3005, allocations: 15.95 kB / 435.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.3005, allocations: 7.922 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.3006, allocations: 0 / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.3006, allocations: 4 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3007, allocations: 0 / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.862e-05/0.3008, allocations: 105.8 kB / 435.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3008, allocations: 0 / 435.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003742/0.3011, allocations: 4 kB / 435.4 MB, free: 2.273 MB / 334.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.0006085/0.3017, allocations: 0.6898 MB / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.3019, allocations: 27.95 kB / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3019, allocations: 0 / 436.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.034e-05/0.302, allocations: 7.984 kB / 436.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.3024, allocations: 12.03 kB / 436.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.3042, allocations: 1.272 MB / 437.4 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.3046, allocations: 0.6885 MB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.69e-05/0.3047, allocations: 0 / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.3047, allocations: 11.44 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3047, allocations: 4 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03273/0.3374, allocations: 1.49 MB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.36, allocations: 6.406 kB / 439.6 MB, free: 14.05 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.821728765033185]