Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 200.1 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007891/0.0007891, allocations: 98.73 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002334, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2255, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.001271/0.2268, allocations: 1.197 MB / 409.3 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005547/0.2274, allocations: 452.5 kB / 409.8 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.893e-05/0.2275, allocations: 4.969 kB / 409.8 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.912e-05/0.2275, allocations: 3.984 kB / 409.8 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.2277, allocations: 12.55 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.2279, allocations: 27.91 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.642e-05/0.228, allocations: 44.69 kB / 409.9 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.383e-05/0.2281, allocations: 9.75 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.679e-05/0.2281, allocations: 19.92 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.074e-05/0.2282, allocations: 27.84 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.2282, allocations: 4 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.2282, allocations: 0.7812 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.2282, allocations: 0 / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.2283, allocations: 50.81 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.466e-05/0.2284, allocations: 31.94 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2284, allocations: 0 / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2284, allocations: 0 / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.2284, allocations: 0.5938 kB / 410 MB, free: 25.81 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.00046/0.2288, allocations: 364.2 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2289, allocations: 12.03 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.091e-05/0.2289, allocations: 34.75 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.229, allocations: 8.844 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.2291, allocations: 184.2 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.2292, allocations: 11.25 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.2292, allocations: 384 / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.2295, allocations: 155.2 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2295, allocations: 0 / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2295, allocations: 4 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.2296, allocations: 4 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.497e-05/0.2297, allocations: 27.98 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.2298, allocations: 157.7 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.2299, allocations: 143.7 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.419e-05/0.23, allocations: 32.78 kB / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.23, allocations: 4 kB / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.343e-05/0.2301, allocations: 38.44 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.2301, allocations: 0 / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002316/0.2303, allocations: 93.67 kB / 411.3 MB, free: 24.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.2304, allocations: 63.31 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.775e-05/0.2304, allocations: 105.8 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.2304, allocations: 25.7 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.292e-05/0.2305, allocations: 88.12 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.181e-05/0.2305, allocations: 4 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.2305, allocations: 0 / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.2305, allocations: 314.8 kB / 411.8 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.449e-05/0.2306, allocations: 15.98 kB / 411.9 MB, free: 23.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.619e-05/0.2306, allocations: 45.09 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.266e-05/0.2306, allocations: 53.09 kB / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2306, allocations: 0 / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.057e-05/0.2307, allocations: 77.48 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.2308, allocations: 4 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2308, allocations: 4 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2308, allocations: 0 / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.504e-05/0.2308, allocations: 12.19 kB / 412.1 MB, free: 23.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.2308, allocations: 7.938 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.305e-05/0.2309, allocations: 7.906 kB / 412.1 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.2309, allocations: 4 kB / 412.1 MB, free: 23.47 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 5.614e-05/0.231, allocations: 113.8 kB / 412.2 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.2311, allocations: 69.61 kB / 412.3 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.949e-05/0.2311, allocations: 8.375 kB / 412.3 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.2311, allocations: 4 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2311, allocations: 4 kB / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2311, allocations: 0 / 412.3 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.965e-05/0.2312, allocations: 181.4 kB / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2312, allocations: 0 / 412.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.583e-05/0.2313, allocations: 15.88 kB / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2313, allocations: 0 / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.2313, allocations: 0 / 412.5 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2313, allocations: 3.938 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2313, allocations: 0 / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.2314, allocations: 97.42 kB / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.2315, allocations: 92.94 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.2315, allocations: 8.062 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-05/0.2316, allocations: 11.98 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-06/0.2316, allocations: 0 / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.2316, allocations: 4 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.606e-05/0.2316, allocations: 87.28 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2316, allocations: 0 / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001843/0.2318, allocations: 8 kB / 412.8 MB, free: 22.67 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.0003552/0.2322, allocations: 0.664 MB / 413.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.2323, allocations: 43.98 kB / 413.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2323, allocations: 0 / 413.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2323, allocations: 0 / 413.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.2326, allocations: 39.94 kB / 413.5 MB, free: 21.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005187/0.2331, allocations: 476.9 kB / 414 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2333, allocations: 0.6926 MB / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.2333, allocations: 11.44 kB / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2333, allocations: 0 / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.41/2.643, allocations: 0.9605 MB / 415.6 MB, free: 19.68 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_TimeBasedPulse.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedPulse/TimeBasedPulse.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.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