Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001382/0.001382, allocations: 174.2 kB / 16.12 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.226/1.226, allocations: 205 MB / 221.9 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009614/0.0009614, allocations: 86.31 kB / 269.9 MB, free: 8.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07578/0.07578, allocations: 12.58 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003461, allocations: 12 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1062, allocations: 49.98 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001941/0.1082, allocations: 1.301 MB / 442.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009816/0.1092, allocations: 0.5191 MB / 443 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.777e-05/0.1093, allocations: 4 kB / 443 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.379e-05/0.1094, allocations: 7.922 kB / 443 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001556/0.1096, allocations: 11.92 kB / 443 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.11, allocations: 47.89 kB / 443 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.914e-05/0.1101, allocations: 47.8 kB / 443.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.1102, allocations: 16.17 kB / 443.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.229e-05/0.1103, allocations: 19.92 kB / 443.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.085e-05/0.1104, allocations: 19.86 kB / 443.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.1104, allocations: 4 kB / 443.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.1104, allocations: 0 / 443.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.668e-05/0.1105, allocations: 15.92 kB / 443.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.82e-05/0.1105, allocations: 31.8 kB / 443.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.1107, allocations: 52.02 kB / 443.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1107, allocations: 0 / 443.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1107, allocations: 0 / 443.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1107, allocations: 0 / 443.2 MB, free: 14.17 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004724/0.1112, allocations: 367.2 kB / 443.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.1112, allocations: 12.03 kB / 443.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.1113, allocations: 42.67 kB / 443.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.1113, allocations: 12.84 kB / 443.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.1115, allocations: 200.1 kB / 443.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1115, allocations: 384 / 443.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.1116, allocations: 8.375 kB / 443.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.1119, allocations: 137.8 kB / 444 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1119, allocations: 0 / 444 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1119, allocations: 4 kB / 444 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1119, allocations: 4 kB / 444 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001004/0.112, allocations: 31.86 kB / 444 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.1124, allocations: 282.6 kB / 444.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.1126, allocations: 156.9 kB / 444.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1127, allocations: 46.62 kB / 444.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.1128, allocations: 3.984 kB / 444.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.67e-05/0.1128, allocations: 34.55 kB / 444.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.512e-06/0.1128, allocations: 0 / 444.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003412/0.1132, allocations: 101.5 kB / 444.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.1132, allocations: 118.7 kB / 444.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1133, allocations: 138.1 kB / 444.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.1134, allocations: 25.7 kB / 444.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.607e-05/0.1134, allocations: 88.14 kB / 445 MB, free: 12.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.1134, allocations: 15.88 kB / 445 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.1135, allocations: 13.97 kB / 445 MB, free: 12.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.1136, allocations: 322.8 kB / 445.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.864e-05/0.1136, allocations: 19.98 kB / 445.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.285e-05/0.1137, allocations: 44.28 kB / 445.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.1139, allocations: 64.22 kB / 445.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1139, allocations: 4 kB / 445.5 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002146/0.1141, allocations: 93.55 kB / 445.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.1141, allocations: 7.984 kB / 445.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1141, allocations: 0 / 445.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1142, allocations: 4 kB / 445.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.902e-05/0.1143, allocations: 8 kB / 445.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1143, allocations: 3.938 kB / 445.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.356e-05/0.1144, allocations: 11.89 kB / 445.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.1144, allocations: 7.938 kB / 445.6 MB, free: 11.45 MB / 298.7 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 8.629e-05/0.1145, allocations: 130.7 kB / 445.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1146, allocations: 53.59 kB / 445.8 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.1146, allocations: 12.25 kB / 445.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1147, allocations: 0 / 445.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1147, allocations: 4 kB / 445.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1147, allocations: 3.984 kB / 445.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.1149, allocations: 173.6 kB / 446 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.1149, allocations: 4 kB / 446 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.606e-05/0.115, allocations: 15.92 kB / 446 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.115, allocations: 8 kB / 446 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.115, allocations: 0 / 446 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.1151, allocations: 3.938 kB / 446 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1151, allocations: 0 / 446 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/0.1153, allocations: 197.1 kB / 446.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.1154, allocations: 93 kB / 446.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.1154, allocations: 4 kB / 446.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.1155, allocations: 4.266 kB / 446.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.1156, allocations: 7.938 kB / 446.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.1156, allocations: 0 / 446.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.271e-05/0.1157, allocations: 111.2 kB / 446.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1157, allocations: 0 / 446.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000413/0.1161, allocations: 15.94 kB / 446.4 MB, free: 10.51 MB / 298.7 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.0005106/0.1166, allocations: 0.7375 MB / 447.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.1169, allocations: 55.91 kB / 447.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1169, allocations: 0 / 447.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.203e-05/0.117, allocations: 16 kB / 447.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.1175, allocations: 24.02 kB / 447.3 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.1191, allocations: 1.488 MB / 448.8 MB, free: 8.051 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.1193, allocations: 0.6926 MB / 449.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.746e-05/0.1194, allocations: 4 kB / 449.5 MB, free: 7.328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.787e-05/0.1194, allocations: 19.42 kB / 449.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1194, allocations: 0 / 449.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.308/0.4274, allocations: 1.542 MB / 451 MB, free: 5.762 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.4277, allocations: 247.2 kB / 451.3 MB, free: 5.504 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.123, allocations: 3.906 kB / 451.3 MB, free: 5.5 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches