Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 103.5 kB / 16.92 MB, free: 5.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 51.08 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1238, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002613/0.1265, allocations: 0.8367 MB / 351 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004287/0.1269, allocations: 119.6 kB / 351.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1271, allocations: 0 / 351.1 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.1273, allocations: 15.86 kB / 351.1 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.1274, allocations: 7.938 kB / 351.1 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1277, allocations: 35.89 kB / 351.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.1278, allocations: 35.92 kB / 351.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.1279, allocations: 31.97 kB / 351.2 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.513e-05/0.128, allocations: 15.88 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.276e-05/0.128, allocations: 23.91 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.1281, allocations: 4 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.453e-05/0.1281, allocations: 0 / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.511e-05/0.1282, allocations: 19.92 kB / 351.3 MB, free: 3.191 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.1282, allocations: 27.8 kB / 351.3 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.1284, allocations: 63.73 kB / 351.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1284, allocations: 0 / 351.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1284, allocations: 0 / 351.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.1284, allocations: 7.938 kB / 351.4 MB, free: 3.094 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005538/0.129, allocations: 383.4 kB / 351.8 MB, free: 2.668 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.129, allocations: 8.031 kB / 351.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.129, allocations: 34.75 kB / 351.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.1291, allocations: 12.75 kB / 351.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002226/0.1293, allocations: 196.1 kB / 352 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.876e-06/0.1293, allocations: 4.375 kB / 352 MB, free: 2.371 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.1294, allocations: 4.375 kB / 352 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.1297, allocations: 151.7 kB / 352.2 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1297, allocations: 3.938 kB / 352.2 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.1297, allocations: 3.938 kB / 352.2 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1297, allocations: 3.984 kB / 352.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.029e-05/0.1298, allocations: 16 kB / 352.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000173/0.1299, allocations: 173.6 kB / 352.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.1301, allocations: 82.69 kB / 352.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.292e-05/0.1302, allocations: 40.84 kB / 352.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.1302, allocations: 0 / 352.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.1302, allocations: 34.72 kB / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1302, allocations: 0 / 352.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002214/0.1305, allocations: 101.5 kB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.1305, allocations: 59.41 kB / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.1307, allocations: 148.7 kB / 352.8 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1307, allocations: 29.7 kB / 352.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1308, allocations: 84.14 kB / 352.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.1308, allocations: 11.89 kB / 353 MB, free: 1.324 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.1308, allocations: 25.72 kB / 353 MB, free: 1.293 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.131, allocations: 314.8 kB / 353.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.878e-05/0.131, allocations: 16 kB / 353.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.648e-05/0.1311, allocations: 54.86 kB / 353.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.503e-05/0.1312, allocations: 78.75 kB / 353.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.1312, allocations: 0 / 353.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001472/0.1313, allocations: 101.5 kB / 353.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1313, allocations: 7.938 kB / 353.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.1314, allocations: 4 kB / 353.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1314, allocations: 0 / 353.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.968e-05/0.1315, allocations: 15.98 kB / 353.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.1315, allocations: 4.188 kB / 353.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.821e-05/0.1315, allocations: 11.94 kB / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.1315, allocations: 7.938 kB / 353.6 MB, free: 0.625 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.000108/0.1316, allocations: 125.9 kB / 353.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1318, allocations: 89.45 kB / 353.8 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.77e-05/0.1318, allocations: 12.72 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1318, allocations: 0 / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1318, allocations: 4 kB / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.1318, allocations: 0 / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.132, allocations: 169.6 kB / 354 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.132, allocations: 0 / 354 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.132, allocations: 15.94 kB / 354 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.1321, allocations: 7.922 kB / 354 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.1321, allocations: 4 kB / 354 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1321, allocations: 8 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1321, allocations: 0 / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.1322, allocations: 105 kB / 354.1 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.1323, allocations: 96.84 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.1323, allocations: 15.97 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.317e-05/0.1324, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-06/0.1324, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1324, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.592e-05/0.1325, allocations: 114.4 kB / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1325, allocations: 0 / 354.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002121/0.1327, allocations: 8 kB / 354.3 MB, free: 15.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0004891/0.1332, allocations: 0.683 MB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.1333, allocations: 55.98 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1334, allocations: 0 / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.31e-07/0.1334, allocations: 4 kB / 355.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.1337, allocations: 51.94 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.1349, allocations: 1.363 MB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.1353, allocations: 0.704 MB / 357.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.961e-05/0.1353, allocations: 8.734 kB / 357.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.1354, allocations: 23.44 kB / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of SimCode: time 5.62e-07/0.1354, allocations: 0 / 357.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09084/0.2262, allocations: 1.778 MB / 359 MB, free: 11.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.386, allocations: 2.75 kB / 359 MB, free: 11.01 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches