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.001698/0.001698, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002263/0.002263, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 68.2 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1197, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.004186/0.1239, allocations: 1.659 MB / 358.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1253, allocations: 0.5377 MB / 359.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1254, allocations: 11.94 kB / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.18e-05/0.1255, allocations: 7.922 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.1257, allocations: 3.938 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.126, allocations: 63.88 kB / 359.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.1262, allocations: 47.84 kB / 359.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1263, allocations: 15.97 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.1264, allocations: 31.8 kB / 359.3 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.336e-05/0.1265, allocations: 27.86 kB / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.1266, allocations: 7.938 kB / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.909e-05/0.1266, allocations: 11.98 kB / 359.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.825e-05/0.1267, allocations: 11.98 kB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.811e-05/0.1267, allocations: 23.75 kB / 359.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.1269, allocations: 63.78 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1269, allocations: 0 / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1269, allocations: 4 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1269, allocations: 3.938 kB / 359.4 MB, free: 11.86 MB / 302.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.0005729/0.1275, allocations: 387.4 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1276, allocations: 8.031 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.767e-05/0.1276, allocations: 38.75 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.1278, allocations: 20.83 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.128, allocations: 204 kB / 360.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.128, allocations: 384 / 360.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.1281, allocations: 8.375 kB / 360.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.1284, allocations: 134 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1284, allocations: 0 / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.1285, allocations: 3.984 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1285, allocations: 0 / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.1286, allocations: 27.92 kB / 360.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004282/0.129, allocations: 278.6 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.1293, allocations: 156.8 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.222e-05/0.1294, allocations: 46.62 kB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.1294, allocations: 0 / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1294, allocations: 34.5 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1294, allocations: 0 / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.000326/0.1298, allocations: 97.72 kB / 360.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.054e-05/0.1299, allocations: 114.8 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.13, allocations: 144.9 kB / 361.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.13, allocations: 25.7 kB / 361.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.1301, allocations: 92.14 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.1301, allocations: 3.906 kB / 361.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-05/0.1302, allocations: 21.7 kB / 361.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.508e-05/0.1303, allocations: 326.7 kB / 361.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.349e-05/0.1303, allocations: 19.98 kB / 361.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.124e-05/0.1304, allocations: 44.28 kB / 361.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.1305, allocations: 64.39 kB / 361.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1305, allocations: 0 / 361.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001667/0.1307, allocations: 93.45 kB / 361.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1307, allocations: 4 kB / 361.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1307, allocations: 0 / 361.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1307, allocations: 4 kB / 361.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.628e-05/0.1308, allocations: 15.92 kB / 361.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1308, allocations: 4.125 kB / 361.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.176e-05/0.1309, allocations: 4 kB / 361.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1309, allocations: 4 kB / 361.8 MB, free: 9.145 MB / 302.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.0001066/0.131, allocations: 125.7 kB / 361.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.739e-05/0.1311, allocations: 61.53 kB / 362 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.1312, allocations: 12.25 kB / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1312, allocations: 0 / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1312, allocations: 0 / 362 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1312, allocations: 4 kB / 362 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.1314, allocations: 185.5 kB / 362.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1314, allocations: 0 / 362.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.227e-05/0.1315, allocations: 11.98 kB / 362.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1315, allocations: 0 / 362.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.1315, allocations: 4 kB / 362.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.1315, allocations: 4 kB / 362.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1315, allocations: 3.938 kB / 362.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.1317, allocations: 193 kB / 362.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.1318, allocations: 97 kB / 362.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.1318, allocations: 0 / 362.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.452e-05/0.1319, allocations: 7.984 kB / 362.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.1319, allocations: 0 / 362.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.1319, allocations: 4 kB / 362.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.781e-05/0.132, allocations: 107.2 kB / 362.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.132, allocations: 0 / 362.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.1323, allocations: 16 kB / 362.6 MB, free: 8.211 MB / 302.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.0005451/0.1329, allocations: 0.7413 MB / 363.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001607/0.133, allocations: 47.97 kB / 363.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.133, allocations: 4 kB / 363.4 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.607e-05/0.1331, allocations: 11.94 kB / 363.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.1335, allocations: 24.02 kB / 363.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.135, allocations: 1.481 MB / 364.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.1353, allocations: 0.7043 MB / 365.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.465e-05/0.1353, allocations: 8 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.1354, allocations: 15.38 kB / 365.7 MB, free: 5 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1354, allocations: 0 / 365.7 MB, free: 5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01155/0.1469, allocations: 1.613 MB / 367.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.1472, allocations: 236.4 kB / 367.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.02, allocations: 4 kB / 367.5 MB, free: 3.27 MB / 302.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