Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008412/0.0008412, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8894/0.8894, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.435e-06/2.435e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.601e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.002883/0.002909, allocations: 1.505 MB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004037/0.003313, allocations: 139.5 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.091e-05/0.003404, allocations: 0 / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.084e-05/0.003455, allocations: 11.86 kB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.003591, allocations: 7.938 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.003843, allocations: 31.84 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001066/0.003949, allocations: 35.92 kB / 326.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.004051, allocations: 15.92 kB / 326.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.887e-05/0.0041, allocations: 11.98 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.231e-05/0.004132, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.00416, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.799e-06/0.004169, allocations: 0 / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.369e-05/0.004223, allocations: 19.91 kB / 326.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.665e-05/0.00425, allocations: 11.94 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.004368, allocations: 31.89 kB / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.004372, allocations: 3.984 kB / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.004374, allocations: 0 / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.004379, allocations: 4 kB / 326.3 MB, free: 14.04 MB / 298.7 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.0004015/0.00478, allocations: 286 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.004824, allocations: 11.98 kB / 326.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.004863, allocations: 38.75 kB / 326.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.692e-05/0.00489, allocations: 12.81 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.005101, allocations: 122.6 kB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.005126, allocations: 4.375 kB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.005142, allocations: 4.375 kB / 326.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.005384, allocations: 89.61 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.005393, allocations: 192 / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.005403, allocations: 384 / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.005411, allocations: 4.125 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.184e-05/0.005473, allocations: 12 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003383/0.005811, allocations: 228.8 kB / 327.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.903e-05/0.00589, allocations: 45.2 kB / 327.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.327e-05/0.005924, allocations: 13.78 kB / 327.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.005947, allocations: 7.938 kB / 327.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.005973, allocations: 34.5 kB / 327.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.005974, allocations: 0 / 327.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002185/0.006193, allocations: 61.58 kB / 327.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.006247, allocations: 81.11 kB / 327.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.006354, allocations: 131.6 kB / 327.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.006368, allocations: 33.69 kB / 327.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.662e-05/0.006415, allocations: 84.14 kB / 327.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.738e-06/0.006425, allocations: 4.203 kB / 327.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.006456, allocations: 17.72 kB / 327.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.006551, allocations: 314.8 kB / 328 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.174e-05/0.006583, allocations: 7.984 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.407e-05/0.006597, allocations: 4 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.871e-05/0.006635, allocations: 16.86 kB / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.006638, allocations: 3.938 kB / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.562e-05/0.006713, allocations: 41.62 kB / 328 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.006726, allocations: 4 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.006731, allocations: 4.094 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.006744, allocations: 4 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-05/0.006758, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.006763, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.07e-05/0.006783, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.006788, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 7.669e-05/0.006865, allocations: 117.8 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.006926, allocations: 45.53 kB / 328.2 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.006956, allocations: 19.41 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.006958, allocations: 32 / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.006962, allocations: 4 kB / 328.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.006967, allocations: 3.984 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.00712, allocations: 128.8 kB / 328.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.007125, allocations: 7.938 kB / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.564e-06/0.007132, allocations: 0 / 328.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.007136, allocations: 3.938 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.007144, allocations: 4 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.007146, allocations: 0 / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.007147, allocations: 4 kB / 328.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.007283, allocations: 152.4 kB / 328.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.835e-05/0.007322, allocations: 15.88 kB / 328.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.007334, allocations: 3.938 kB / 328.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.625e-05/0.00739, allocations: 4 kB / 328.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.00742, allocations: 4 kB / 328.5 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.007424, allocations: 3.938 kB / 328.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.823e-05/0.007492, allocations: 104.1 kB / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.007492, allocations: 0 / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002372/0.007729, allocations: 4 kB / 328.7 MB, free: 11.42 MB / 298.7 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 (sample1.u,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.0003543/0.008083, allocations: 0.6782 MB / 329.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.249e-05/0.008176, allocations: 15.92 kB / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.008178, allocations: 4 kB / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.441e-05/0.008192, allocations: 8 kB / 329.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.008423, allocations: 8.016 kB / 329.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.009169, allocations: 1.234 MB / 330.6 MB, free: 9.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.121e-05/0.00922, allocations: 83.55 kB / 330.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.527e-05/0.009236, allocations: 4 kB / 330.7 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.129e-05/0.009267, allocations: 12.5 kB / 330.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.009267, allocations: 4 kB / 330.7 MB, free: 9.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01399/0.02326, allocations: 2.025 MB / 332.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.786/6.809, allocations: 0 / 332.7 MB, free: 7.316 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,step.startTime,step.startValue,step.y,time [Calling sys.exit(0), Time elapsed: 8.478320265188813]