Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.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/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/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.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse",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.0008803/0.0008804, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.164/1.164, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0006671/0.0006671, allocations: 82.42 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05856/0.05856, allocations: 12.19 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.000365, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06452/0.0649, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.001153/0.06608, allocations: 1.179 MB / 443.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005239/0.06663, allocations: 472.1 kB / 444.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.592e-05/0.0667, allocations: 0 / 444.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.06673, allocations: 7.922 kB / 444.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.06685, allocations: 7.938 kB / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001443/0.06701, allocations: 27.91 kB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.72e-05/0.06708, allocations: 51.78 kB / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.257e-05/0.06716, allocations: 12 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.928e-05/0.06721, allocations: 19.91 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.469e-05/0.06725, allocations: 19.86 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.06728, allocations: 4 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.768e-06/0.06729, allocations: 0 / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.06731, allocations: 8 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.06735, allocations: 45.56 kB / 444.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.403e-05/0.06741, allocations: 36.16 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.06741, allocations: 0 / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.06742, allocations: 0 / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.715e-06/0.06743, allocations: 4 kB / 444.4 MB, free: 14.64 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003748/0.06781, allocations: 375.2 kB / 444.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.06785, allocations: 8.031 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.247e-05/0.06787, allocations: 30.75 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.152e-05/0.0679, allocations: 8.938 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.06802, allocations: 180.2 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.06804, allocations: 8.375 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.06805, allocations: 8.375 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.06834, allocations: 143.3 kB / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.06836, allocations: 0 / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-06/0.06837, allocations: 0 / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.06838, allocations: 4 kB / 445.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.81e-05/0.06847, allocations: 31.97 kB / 445.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/0.06858, allocations: 165.7 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.06874, allocations: 139.7 kB / 445.5 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.005e-05/0.06881, allocations: 32.86 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.06884, allocations: 0 / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.099e-05/0.06885, allocations: 38.48 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 7.41e-07/0.06886, allocations: 0 / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002025/0.06907, allocations: 89.58 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.0691, allocations: 55.41 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.018e-05/0.06916, allocations: 117.8 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-06/0.06917, allocations: 29.64 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.713e-05/0.0692, allocations: 88.14 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.746e-06/0.06921, allocations: 0 / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-06/0.06922, allocations: 0 / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.321e-05/0.06925, allocations: 318.8 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.06927, allocations: 4 kB / 446.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.277e-05/0.0693, allocations: 49.14 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.805e-05/0.06934, allocations: 57.09 kB / 446.3 MB, free: 12.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.06935, allocations: 7.938 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.903e-05/0.06943, allocations: 77.41 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.06945, allocations: 8 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.06946, allocations: 0 / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.06947, allocations: 4 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.695e-05/0.06952, allocations: 7.938 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.06953, allocations: 7.984 kB / 446.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.882e-05/0.06956, allocations: 3.938 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.06957, allocations: 8.188 kB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,pulse.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.06962, allocations: 117.6 kB / 446.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.06974, allocations: 77.47 kB / 446.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.6e-05/0.06977, allocations: 16.36 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.06978, allocations: 0 / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.06979, allocations: 0 / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.06979, allocations: 3.984 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.053e-05/0.06985, allocations: 158 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.06986, allocations: 8 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.581e-05/0.06991, allocations: 15.92 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.06992, allocations: 0 / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.06993, allocations: 4 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.06993, allocations: 0 / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.06994, allocations: 4 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.07007, allocations: 93.05 kB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.07009, allocations: 92.95 kB / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.07011, allocations: 0 / 447 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.0702, allocations: 23.92 kB / 447 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-06/0.0702, allocations: 0 / 447 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.07021, allocations: 0 / 447 MB, free: 11.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.33e-05/0.07024, allocations: 87.73 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07025, allocations: 0 / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001713/0.07042, allocations: 12 kB / 447.1 MB, free: 11.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003177/0.07075, allocations: 0.6517 MB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.07086, allocations: 39.92 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.07087, allocations: 448 / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.332e-06/0.07087, allocations: 4 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.07117, allocations: 51.94 kB / 447.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004588/0.07163, allocations: 478.2 kB / 448.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.985e-05/0.07173, allocations: 0.6887 MB / 449 MB, free: 9.473 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.07176, allocations: 15.55 kB / 449.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.07177, allocations: 0 / 449.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.197/2.268, allocations: 0.9618 MB / 450 MB, free: 8.496 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TimeBasedPulse.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock1.y,pulse.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(pulse.next),pulse.Twidth,pulse.next,pulse.period,pulse.simTime,pulse.startTime,pulse.tol,pulse.width,pulse.y,time