Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.001339/0.001339, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001621/0.001621, allocations: 214 kB / 23.74 MB, free: 4.672 MB / 14.72 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 1.42/1.42, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.88 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2283, allocations: 53.4 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003018/0.2313, allocations: 1.622 MB / 432.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.2324, allocations: 0.561 MB / 433.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.192e-05/0.2325, allocations: 7.875 kB / 433.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.287e-05/0.2326, allocations: 7.922 kB / 433.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.2327, allocations: 15.86 kB / 433.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.233, allocations: 59.81 kB / 433.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.2331, allocations: 47.86 kB / 433.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.465e-05/0.2332, allocations: 11.98 kB / 433.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.2333, allocations: 35.84 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.258e-05/0.2334, allocations: 27.86 kB / 433.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.2334, allocations: 4 kB / 433.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.503e-05/0.2334, allocations: 4 kB / 433.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.598e-05/0.2335, allocations: 23.91 kB / 433.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/0.2335, allocations: 27.75 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.2336, allocations: 68.08 kB / 433.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2337, allocations: 4 kB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2337, allocations: 0 / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.2337, allocations: 0 / 433.7 MB, free: 4.184 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004735/0.2341, allocations: 313.9 kB / 434 MB, free: 3.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2342, allocations: 8.031 kB / 434 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.2342, allocations: 34.75 kB / 434.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.2343, allocations: 20.88 kB / 434.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.2346, allocations: 149 kB / 434.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-06/0.2346, allocations: 4.375 kB / 434.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2346, allocations: 4.375 kB / 434.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.2349, allocations: 153.8 kB / 434.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2349, allocations: 0 / 434.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.2349, allocations: 0 / 434.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2349, allocations: 0 / 434.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.975e-05/0.235, allocations: 35.91 kB / 434.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000364/0.2354, allocations: 245.7 kB / 434.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.2356, allocations: 87.7 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.347e-05/0.2357, allocations: 30.7 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.2357, allocations: 3.984 kB / 434.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.2357, allocations: 42.5 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2357, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002879/0.236, allocations: 97.55 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/0.2361, allocations: 106.8 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.2362, allocations: 133.8 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.2363, allocations: 29.7 kB / 435.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.634e-05/0.2363, allocations: 92.12 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.2363, allocations: 7.891 kB / 435.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.2364, allocations: 29.97 kB / 435.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2365, allocations: 318.8 kB / 435.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.331e-05/0.2366, allocations: 19.92 kB / 435.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.046e-05/0.2367, allocations: 44.28 kB / 435.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.2368, allocations: 64.22 kB / 435.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2368, allocations: 0 / 435.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001819/0.237, allocations: 89.5 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.237, allocations: 4 kB / 435.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.237, allocations: 8.125 kB / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.237, allocations: 0 / 435.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.546e-05/0.2371, allocations: 11.98 kB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.2371, allocations: 4.156 kB / 435.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.849e-05/0.2371, allocations: 3.953 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.2372, allocations: 7.984 kB / 435.9 MB, free: 1.746 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: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001073/0.2373, allocations: 129.8 kB / 436 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.246e-05/0.2374, allocations: 53.81 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.2374, allocations: 20.27 kB / 436.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2374, allocations: 8 kB / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2374, allocations: 0 / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.2374, allocations: 0 / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.2376, allocations: 148.7 kB / 436.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2376, allocations: 3.938 kB / 436.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.807e-05/0.2377, allocations: 12 kB / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.2377, allocations: 4 kB / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.2377, allocations: 3.984 kB / 436.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.2377, allocations: 4 kB / 436.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2377, allocations: 0 / 436.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.2379, allocations: 193.1 kB / 436.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/0.238, allocations: 19.94 kB / 436.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.238, allocations: 0 / 436.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.147e-05/0.238, allocations: 4 kB / 436.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.2381, allocations: 4 kB / 436.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.2381, allocations: 4 kB / 436.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.2382, allocations: 114 kB / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2382, allocations: 0 / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.2384, allocations: 8 kB / 436.6 MB, free: 0.9414 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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0007037/0.2391, allocations: 0.7492 MB / 437.3 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001926/0.2393, allocations: 47.91 kB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2393, allocations: 0 / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.59e-05/0.2393, allocations: 15.92 kB / 437.4 MB, free: 100 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2397, allocations: 38.34 kB / 437.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.2413, allocations: 1.459 MB / 438.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.2417, allocations: 0.6963 MB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.81e-05/0.2417, allocations: 3.781 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.51e-05/0.2418, allocations: 23.44 kB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2418, allocations: 0 / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.272, allocations: 1.918 MB / 441.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.04, allocations: 7.797 kB / 441.5 MB, free: 11.93 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.345551995793357]