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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001741/0.001741, allocations: 118.8 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002842/0.002843, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.645/1.645, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001576, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4186, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00374/0.4224, allocations: 1.597 MB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.4237, allocations: 0.5571 MB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.4238, allocations: 0 / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.868e-05/0.4239, allocations: 7.875 kB / 410.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.4241, allocations: 11.92 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.4246, allocations: 67.73 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.4247, allocations: 43.86 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.4249, allocations: 19.98 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.425, allocations: 35.84 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.184e-05/0.4251, allocations: 19.86 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.4252, allocations: 4 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.294e-05/0.4252, allocations: 8 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.21e-05/0.4253, allocations: 15.92 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.4254, allocations: 27.75 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.4256, allocations: 71.72 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4256, allocations: 0 / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4256, allocations: 0 / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.4256, allocations: 4 kB / 411.2 MB, free: 15.02 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.0005816/0.4262, allocations: 384.8 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.4263, allocations: 12.03 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.05e-05/0.4263, allocations: 38.69 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.4265, allocations: 20.83 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.4268, allocations: 200.1 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.4268, allocations: 4.312 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.4268, allocations: 8.375 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.4271, allocations: 134 kB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.4272, allocations: 0 / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.4272, allocations: 3.938 kB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.4272, allocations: 7.938 kB / 412 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.046e-05/0.4273, allocations: 23.98 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003723/0.4277, allocations: 278.6 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.4279, allocations: 160.8 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.543e-05/0.428, allocations: 38.69 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.428, allocations: 7.984 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.4281, allocations: 30.56 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.4281, allocations: 4 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003022/0.4284, allocations: 101.4 kB / 412.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.4285, allocations: 102.8 kB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.4286, allocations: 148 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.4286, allocations: 25.7 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.4287, allocations: 92.33 kB / 413 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.4287, allocations: 15.89 kB / 413 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.4288, allocations: 25.61 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4289, allocations: 318.8 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.429, allocations: 15.98 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.062e-05/0.4291, allocations: 44.28 kB / 413.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.4292, allocations: 64.22 kB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4292, allocations: 0 / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000177/0.4294, allocations: 85.55 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4294, allocations: 12.11 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4295, allocations: 0 / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4295, allocations: 4 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.4296, allocations: 12 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.4296, allocations: 3.938 kB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.4296, allocations: 7.984 kB / 413.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.4297, allocations: 8 kB / 413.6 MB, free: 12.3 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.0001081/0.4298, allocations: 121.7 kB / 413.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.006e-05/0.4299, allocations: 57.5 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.4299, allocations: 16.25 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.4299, allocations: 0 / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.43, allocations: 0 / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.43, allocations: 11.92 kB / 413.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.4302, allocations: 177.6 kB / 414 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4302, allocations: 0 / 414 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-05/0.4303, allocations: 19.86 kB / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4303, allocations: 0 / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.4303, allocations: 0 / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.4303, allocations: 4 kB / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4303, allocations: 4 kB / 414 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.4305, allocations: 181.1 kB / 414.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.516e-05/0.4306, allocations: 97 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.4306, allocations: 3.984 kB / 414.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.368e-05/0.4307, allocations: 11.94 kB / 414.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.4308, allocations: 4.281 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.4308, allocations: 4 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.9e-05/0.4309, allocations: 109.5 kB / 414.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4309, allocations: 0 / 414.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.4311, allocations: 8 kB / 414.5 MB, free: 11.37 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.0006161/0.4317, allocations: 0.7571 MB / 415.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001855/0.4319, allocations: 51.91 kB / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.432, allocations: 0 / 415.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.462e-05/0.432, allocations: 12.38 kB / 415.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.4324, allocations: 35.77 kB / 415.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.434, allocations: 1.459 MB / 416.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.4342, allocations: 0.6962 MB / 417.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.041e-05/0.4343, allocations: 11.77 kB / 417.5 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.426e-05/0.4344, allocations: 23.44 kB / 417.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4344, allocations: 0 / 417.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.4553, allocations: 1.823 MB / 419.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.317/8.772, allocations: 3.859 kB / 419.3 MB, free: 6.473 MB / 334.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches